I'm guessing you cannot do this but I'd like to be able to only
execute my exec tasks if rule the determined it was necessary
to compile something.
so
How can I not do the exec task if no .java files changed.
<target name="compile" depends="init,prepare">
<mkdir dir="${outputDir}"/>
<javac
srcdir="${sourceDir}" destdir="${outputDir}" includes="**/*.java" verbose="true">
<classpath>
<pathelement
location="third_party/sun/servlet.jar"/>
<pathelement
location="third_party/sun/jndi.jar"/>
<pathelement
location="third_party/oracle/classes12_01.zip"/>
<pathelement
location="third_party/oracle/ojsp.jar"/>
<pathelement
location="third_party/cybersource/cdkjava3300.jar"/>
</classpath>
</javac>
<exec executable="net" os="Windows NT">
<arg value="stop"/>
<arg value="JRun Default Server"/>
</exec>
<exec executable="net" os="Windows NT">
<arg value="start"/>
<arg value="JRun Default Server"/>
</exec>
</target>
|