Ant Help

From: vnssoftware (vnssoftware_at_myway.com)
Date: 12/30/03


Date: 30 Dec 2003 14:07:40 -0800

Ant Manual for javac 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.

Now we have-
<javac srcdir="${src}"
         destdir="${build}"
         classpath="xyz.jar"
         debug="on"
  />
And say xyz.jar has all the class files for {src}.
How can we make Ant to compile only the source file in {src} that have
timestamp more recent than the class files in xyz.jar. That is how can
we put Ant to use its timestamp mechanism using jars on the classpath.

Thank you and Happy New Year.



Relevant Pages

  • ant, packages, and classpaths.
    ... I have an application that i need to compile using ant. ... not have nay class files in it. ... javac to compile the bean source files it automatically compiles the ...
    (comp.lang.java.programmer)
  • Re: Javadoc does not process all .java files
    ... >of those .java files. ... when you compile with ant, does it recompile these files? ... ant only includes files in its project. ...
    (comp.lang.java.help)
  • Re: applet build
    ... Why not use Ant? ... with the main method and compile this. ... This will work if all java files are in just one folder (like the ...
    (comp.lang.java.programmer)
  • Compile nested jsp pages
    ... Have anyone tried compiling a large JSP project in ANT or similar to ... I have the problem that since jsp A includes jsp B, ... Hence when I just compile each jsp file to a java file and compiles the ... I'd rather not manually delete all the bad java files before compiling ...
    (comp.lang.java.programmer)
  • Re: Compile java sources inside J2EE component
    ... >>After creating the source files I need ... >>to compile them at runtime, is there a possibility to do so? ... to define his specific CRM model at runtime. ... java classes that represent this model and instances of this model to ...
    (comp.lang.java.programmer)