ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Reed" <ran...@befunk.com>
Subject Re: Introductory Article on Ant
Date Mon, 30 Oct 2000 12:31:19 GMT
> One thing you use
> <target name="build" depends="init,prepare">
>   <javac  srcdir="${Src}/org/varnam" destdir="${Dest}">
>     <classpath>
>       <pathelement location="d:\Compilers\jre1.2\lib\rt.jar"/>
>       <pathelement location="${Src}"/>
>     </classpath>
>   </javac>
> </target>
>
> when it should probably be
> <target name="build" depends="init,prepare">
>   <javac  srcdir="${Src}" destdir="${Dest}" includes="org/varnam/**" >
>     <classpath>
>       <pathelement location="d:\Compilers\jre1.2\lib\rt.jar"/>
>       <pathelement location="${Src}"/>
>     </classpath>
>   </javac>
> </target>
>
> The first version will recompile the classes all the time while the second
> will only recompiule if .java file is newer than .class file ;)

OK, I'm confused.  It's not immediately obvious why it would recompile on
one and not the other.  Is this just a javac-ism?

--
Ben Reed a.k.a. Ranger Rick (ranger@befunk.com)
http://defiance.dyndns.org/ / http://radio.scenespot.org/
lOST: oNE 'cAPS lOCK' KEY.  rEWARD OFFERED.
Now playing on Defiance Radio: Fpmip by Depeche Mode



Mime
View raw message