> 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]>

Reply via email to