From f710134d16c1bd05448ef4fbd6ec9b3110f62cac Mon Sep 17 00:00:00 2001 From: Jan Materne Date: Wed, 20 Dec 2006 08:54:39 +0000 Subject: [PATCH] Show the list of supported platforms for git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@488981 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/CoreTasks/property.html | 59 ++++++++++++++++++++++++++--- 1 file changed, 54 insertions(+), 5 deletions(-) diff --git a/docs/manual/CoreTasks/property.html b/docs/manual/CoreTasks/property.html index 55eac9832..64ecd1e87 100644 --- a/docs/manual/CoreTasks/property.html +++ b/docs/manual/CoreTasks/property.html @@ -122,12 +122,11 @@ SYSTEM). "." it will not be doubled. ie environment="myenv." will still allow access of environment variables through "myenv.PATH" and "myenv.TERM". This functionality is currently only implemented - on select platforms. Feel free to send patches to increase the number of platforms - this functionality is supported on ;).
+ on select platforms. Feel free to send patches to increase the + number of platforms this functionality is supported on ;).
Note also that properties are case sensitive, even if the environment variables on your operating system are not, e.g. it will be ${env.Path} not ${env.PATH} on Windows 2000. - classpath @@ -210,7 +209,57 @@ deploy.url=http://${deploy.server}:${deploy.port}/ + +

Notes about environment variables

+

+ Ant runs on Java 1.2 therefore it cant use Java5 features for accessing environment + variables. So it starts a command in a new process which prints the environment variables, + analyzes the output and creates the properties.
+ There are commands for the following operating systems implemented in + + Execute.java (method getProcEnvCommand()): + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
OScommand
os/2 cmd /c set
windows
* win9x command.com /c set
* other cmd /c set
z/os /bin/env OR /usr/bin/env OR env (depending on read rights)
unix /bin/env OR /usr/bin/env OR env (depending on read rights)
netware env
os/400 env
openvms show logical
+

- - + \ No newline at end of file