ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cohan, Sean" <>
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 name="compile" depends="init">
	<javac srcdir="${src.dir}" 
		excludes="**/*, **/,
**/"	/>


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message