I had a pressing need to get at TOMCAT_HOME to do a bit of deployment from a
build. So I wrote a task to get Execute to fetch all the environment
variables then turn them into properties like (from the debug trace) the
following -
environment.PROCESSOR_LEVEL -> 6
environment.PROCESSOR_REVISION -> 0502
environment.ProgramFiles -> C:\Program Files
environment.PROMPT -> $P$G
environment.SystemDrive -> C:
environment.SystemRoot -> C:\WINNT
environment.TEMP -> d:\temp
environment.TMP -> d:\temp
You can change the prefix if you want. The test build tries the default and
a specified prefix, prints out the value of ANT_HOME in both cases.
Enjoy,
-Steve
|