You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Cohan, Sean" <SC...@goSPS.com> on 2002/11/12 17:55:29 UTC
Only Touched Files
I'm a newbie. Currently our builds are compiling all source files. I would
like it to only compile files that have been touched since the last build.
How do I specify this? Here's the target (compile) in question:
<property name="base.dir" value="${env.BASE_DIR}"/>
<property name="build.dir" value="${env.BUILD_DIR}"/>
<property name="classes.dir" value="${build.dir}/classes/jar"/>
<property name="src.dir" value="${base.dir}/files/src/com/gosps"/>
<property name="reports.dir" value="${build.dir}/reports"/>
<property name="resources.dir" value="${base.dir}/files/resources"/>
<target name="init">
<delete dir="${reports.dir}"/>
<delete file="${build.dir}/sps.jar"/>
<delete file="c:\\build_succeeded"/>
<mkdir dir="${reports.dir}"/>
</target>
<target name="compile" depends="init">
<javac srcdir="${src.dir}"
destdir="${classes.dir}"
excludes="**/*Test.java, **/Class2JUnitTest.java,
**/JUnitTestCreator.java" />
</target>
Thanks.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>