Hi, On Mon, 2008-11-10 at 11:04 -0800, Kelly O'Hair wrote:
I've had some continuing problems with running 'ant' on all the jdk build platforms. If you look at the langtools/make/Makefile (which just trys to run ant) you can see the gyrations it goes through itself.
Initially I had assumed that setting both ANT_HOME and JAVA_HOME was important, but now I think it's better to not set ANT_HOME at all, but just make sure that the 'ant' you want is in your PATH, and if ANT_HOME is set it's critical that these are one in the same (Only Windows seems to need the ANT_HOME set).
This is actually the route we took with IcedTea. We explicitly check that ant is on the PATH (FIND_TOOL([ANT], [ant]) in configure.ac) and then with patches/icedtea-ant.patch we just remove all usage of ANT_HOME in the openjdk Makefiles and make sure to call ant directly instead of doing a $(ANT_HOME)/bin/ant (not just in langtools, but also in the corba and jaxws workspaces). Cheers, Mark