ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Ant 1.1 Problem
Date Wed, 19 Jul 2000 21:23:03 GMT

You've been caught by the change to the <property> task.  Once a property
value is set, its set for good.  During a project startup, all the system
properties are reflected into the project properties.  Thus, they can't be
changed from within a project.  The only way to override it currently is
from the command line.  So you would need

... -Djava.home=BLAH ...

in your call to ant.

Stefan et al., you probably want to put a warning into the readme or the
index.htm docs.  It seems that a number of 1.0.8 users are getting bitten
by this change.

Glenn McAllister
TID - Software Developer - VisualAge for Java
IBM Toronto Lab, (416) 448-3805
"An approximate answer to the right question is better than the
right answer to the wrong question." - John W. Tukey

Please respond to

Subject:        Ant 1.1 Problem

Hi all,

Pulled down the new Ant 1.1 today and am having problems
not picking up environment variables.
I'm NT4 SP5/JDK1.3/Tomcat 3.1/Ant 1.1 and I set up a Task
in my build.xml to simply ECHO the following;

   java.home - comes up C:\ProgramFiles\JavaSoft\JRE\1.3
              when should be d:\jakarta-ant
  ant.home - is picking up my environment variable properly
  tomcat.home - comes up ${tomcat.home}

I can set properties in my build.xml to define my missing
tomcat.home but I can't seem to override java.home and my
compilations are failing on import problems.

Any suggestions are greatly appreciated.

Tony Cotton

View raw message