https://bz.apache.org/bugzilla/show_bug.cgi?id=65768
Bug ID: 65768
Summary: inconsistent documentation of environment variables
Product: Ant
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: Documentation
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
https://ant.apache.org/manual/Tasks/property.html
These statements are inconsistent:
Since Ant 1.8.2, if Ant detects it is running on a Java 5 or newer, Ant will
use System.getenv() rather than its own OS dependent native implementation. For
some OSes this causes minor differences when compared to older versions of Ant.
For a full list see Bugzilla Issue 49366.
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.
--
You are receiving this mail because:
You are the assignee for the bug.