ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cohan, Sean" <SCo...@goSPS.com>
Subject Only Touched Files
Date Tue, 12 Nov 2002 16:55:29 GMT
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:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message