ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49366] New: Differences between system.getenv and Ant 1.8.1 <property env=""/>
Date Tue, 01 Jun 2010 14:01:03 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49366

           Summary: Differences between system.getenv and Ant 1.8.1
                    <property env=""/>
           Product: Ant
           Version: nightly
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: notifications@ant.apache.org
        ReportedBy: bodewig@apache.org


On Windows System.getenv returns a few environment variables that Ant's
1.8.1 would not return via <property environment=""/>.  The keys "=::" and
"=C:" seem to be always be available and sometimes tehere also is
"=ExitCode".

We will need to decide what to do with the new variables.  Documenting them
will probably be fine, Maarten[1] suggests:

 *   - There are magic environment variables maintained by Windows
 *   that start with a `=' (!) character.  These are used for
 *   Windows drive current directory (e.g. "=C:=C:\WINNT") or the
 *   exit code of the last command (e.g. "=ExitCode=0000001").

Cygwin's /usr/bin/env replaces the "=" in the keys with a "!", we'll likely
need to do something similar or else Execute#patchEnvironment is getting into
trouble.

[1]
http://mail-archives.apache.org/mod_mbox/ant-dev/201005.mbox/%3C377355.14246.qm@web30801.mail.mud.yahoo.com%3E

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message