For some reason I can't get access to the environment properties on
Linux in my Ant build.xml. I realize the Docs say it only works on
some platforms, but I'd figure linux was one such platform.
Here's the test script (mostly copied from the Ant Documentation)
<project name="env" default="debug">
<!-- tasks -->
<target name="debug">
<property environment="env"/>
<property name="junit.home" value="${env.JUNIT_HOME}"/>
<echo message="Number of Processors =
${env.NUMBER_OF_PROCESSORS}"/>
<echo message="ANT_HOME is set to = ${env.ANT_HOME}"/>
<echo message="${junit.home}"/>
<echo message="${env.JUNIT_HOME}"/>
</target>
</project>
Here's the output I get:
Buildfile: build.xml
debug:
[echo] Number of Processors = ${env.NUMBER_OF_PROCESSORS}
[echo] ANT_HOME is set to = ${env.ANT_HOME}
[echo] ${env.JUNIT_HOME}
[echo] ${env.JUNIT_HOME}
BUILD SUCCESSFUL
Total time: 5 seconds
any suggestions?
-j
JVarsoke - 14 Jul 2003 01:36 GMT
> For some reason I can't get access to the environment properties on
> Linux in my Ant build.xml.
[snip]
Remembering to "export" the environment variables did wonders. D'oh.
-j