ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
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

           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

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

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


Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message