Ant Help

V

vnssoftware

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.
 
B

brougham5

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.

I'd look up info on using the ant task "depend" if I were you. See if
that'll solve your problem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
474,262
Messages
2,571,056
Members
48,769
Latest member
Clifft

Latest Threads

Top