Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Javac task query

Javac task query

2007-06-26       - By Prashant Reddy
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

Please see :
http://ant.apache.org/faq.html#always-recompiles

HTH

On Tue, 2007-06-26 at 16:15 +0800, Yadav, Akshat Kumar wrote:
> Hi All,
>
> Ant manual says "The source and destination directory will be
> recursively scanned for Java source files to compile. Only Java files
> that have no corresponding .class file or where the class file is older
> than the .java file will be compiled."
>
> Reference: http://ant.apache.org/manual/CoreTasks/javac.html
>
> But, when I compile my java files through using ANT javav task, all
> files gets compiled every time. Rather, I want it to compile only those
> files that have no corresponding .class file or where the class file is
> older than the .java file.
>
> Code:
>
>   <target name="compile">
>     <javac srcdir="${src}" destdir="${dest}"
> deprecation="no" debug="on" listfiles="yes">
>         <classpath>
>           <fileset dir="${lib}"
> includes="**/*.jar **/*.zip"/>
>           <fileset dir="${dest}"
> includes="**/*.*"/>
>         </classpath>
>     </javac>
>   </target>
>
> Let me know what I am missing...
>
> Thanks,
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
--

-Prashant

Don't upload, just share : www.dekoh.com


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.