ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Nilsson <>
Subject ant is incompatible with JDK javac 1.3
Date Tue, 20 Feb 2001 14:17:44 GMT
ant's built in target "javac" is incompatible with javac 1.3 (at least). If I set the its attribute
"destdir" to build directory "build", JDK javac 1.3 will, since its given the parameter '-d
build', create sub directories matching the package name under "build" and put the compiled
class files in there. However, ant assumes the class files are put directly under "build"
and will therefore recompile everytime it's invoked since no class files is ever found during
its "up-to-date" check.
Is there a work around except for omitting the "destdir" attribute and clutter the src directory
with class files
(in which case javac doesn't create sub directories)?

Don't miss the opportunity to stay ahead of the latest developments!
Visit Axis at CeBIT - Hall 11 - Stand G62
March 22 - 28, 2001- Hannover, Germany

Get your hands on and evaluate the latest networking solutions for the 
converging world of wired and wireless. All in one place, at one time!

For more information 

View raw message