ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: Only Touched Files
Date Tue, 12 Nov 2002 17:00:07 GMT

<property name="src.dir" value="${base.dir}/files/src/com/gosps"/>


<property name="src.dir" value="${base.dir}/files/src"/>

I suspect this should do it. Also read the FAQ about 'always recompile'.


-----Original Message-----
From: Cohan, Sean [] 
Sent: Tuesday, November 12, 2002 10:55 AM
To: ''
Subject: 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 name="compile" depends="init">
	<javac srcdir="${src.dir}" 
		excludes="**/*, **/,
**/"	/>


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

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

View raw message