ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: using system environment variable within ANT?
Date Wed, 06 Sep 2000 06:19:34 GMT
>>>>> "AP" == AlexandrePOLOZOFF  <" <>> writes:

 AP> I have a build.cmd file that sets the environment variable
 AP> ANT_COMPILER to jikes if the jikes compiler is installed. I set
 AP> build.compiler to ${ant_compiler}

You cannot access system environment variables from Java, you need to
"translate" it into a Java property. Invoking Ant with
-Dbuild.compiler=%ANT_COMPILER% should do it (I'm not sure about the
%VARIABLENAME% syntax, I'm more of a Unix guy).


View raw message