Bug#508342: ant: Ant dependency

Onkar Shinde onkarshinde at gmail.com
Wed Dec 10 14:42:50 UTC 2008

Ant itself does not need java compiler to run. Following is the message I get.

$ ant
Unable to locate tools.jar. Expected to find it in
Buildfile: build.xml does not exist!
Build failed

You can see that while tools.jar is not present, ant tried to lookup
build.xml in current directory. Which means ant is running fine.
You will need tools.jar only when you decide to use tasks that are
accomplished with JDK ex. compilations, javadoc generation etc. For
the tasks which don't need JDK ant will work just fine without
tools.jar ex. creating directories, copying files, archiving
directories etc.

java2-compiler can be added as 'Recommends' to ant as javac is in my
opinion most frequently used task. But the decision needs to be taken
by package maintainers.



More information about the pkg-java-maintainers mailing list