ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cole, Derek E" <>
Subject Configure an ANT project in Java
Date Thu, 07 May 2009 18:35:31 GMT
Hello all. I am trying to configure an Ant project from a Java class
using the API. I have set up my Project like so



                  ProjectHelper helper =

                  antproject.addReference("ant.projectHelper", helper);

                  helper.parse(antproject, buildFile);



The problem is, I don't think all of the properties are loading
properly. Some of my build files that use a property file seem to not be
getting the values from the file they are using. I also
seem to be losing the value of JAVA_HOME in the build files. I am not
sure why this is happening. Whenever I get to a javac task, the build


I have not tried to set the property "java.home" because I didn't think
I had to.  I basically want to do as minimal configuring of the project
as possible, as if I was just running ant from the command line, because
all of my buildfiles are already complete..just trying to automate the
execution of previously existing files.


Thanks in advance,



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message