diff --git a/manual/Tasks/property.html b/manual/Tasks/property.html index 4e42af10e..42250b9f8 100644 --- a/manual/Tasks/property.html +++ b/manual/Tasks/property.html @@ -315,11 +315,18 @@ deploy.url=http://${deploy.server}:${deploy.port}/
- Ant runs on Java 1.2 therefore it cannot 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.
+ When Ant started to support setting properties from environment
+ variables it ran on Java 1.2 where System.getEnv
didn't
+ work. So we decided to start a command in a new process which prints
+ the environment variables, analyzes the output and creates the
+ properties. Once Java 5 became our baseline we could have switched
+ to getEnv
but it returned different results on some
+ platforms so we stuck with the command approach to remain backwards
+ compatible.
+
There are commands for the following operating systems implemented in - + Execute.java (method getProcEnvCommand()):