I had started down a similar path before but decided
there ought to be a more direct way. Guess not!
Thanks,
Matt
--- Milind Nirgun <[EMAIL PROTECTED]> wrote:
> > Now I still can't figure
> > out how to conditionally include
> > "${env.JAVA_HOME}/src" in the sourcepath for the
> > javadoc statement only when such a directory
> exists.
>
> Try this:
> <target name="set_java_src" >
> <available file="${env.JAVA_HOME}/src"
> type="dir" property="java.src.present" />
> </target>
>
> <target name="check_java_src"
> depends="set_java_src" if="java.src.present" >
> <echo message="java.src exists" />
> </target>
>
> Run check_java_src target, it will run only if the
> dir ${env.JAVA_HOME}/src exists. If you need an
> alternate branch define another target with an
> unless="java.src.present" attribute. You can use
> this structure around your javadoc tasks.
> -Milind
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>