You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2021/12/26 18:53:25 UTC
[Bug 65768] New: inconsistent documentation of environment variables
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: notifications@ant.apache.org
Reporter: gunpolishing369@cbfiddle.com
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.
[Bug 65768] inconsistent documentation of environment variables
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65768
Stefan Bodewig <bo...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Target Milestone|--- |1.10.13
Status|NEW |RESOLVED
Version|unspecified |1.10.12
--- Comment #1 from Stefan Bodewig <bo...@apache.org> ---
Many thanks, fixed for the next releases with
https://github.com/apache/ant/commit/df65998cff76c04d8e62dcb7c5219e87f7c499c1
--
You are receiving this mail because:
You are the assignee for the bug.