If the difference would be a problem, maybe we could ignore the environment 
variables starting with '=' on windows?
According to the java.lang.ProcessEnvironment javadoc:

 *   - 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").


Maarten


----- Original Message ----
From: Maarten Coene <maarten_co...@yahoo.com>
To: Ant Developers List <dev@ant.apache.org>
Sent: Mon, May 31, 2010 9:55:33 PM
Subject: Re: System.getenv vs Ant 1.8.1's Execute

> Also, on my Windows7 system there are differences: System.getenv returns

> two or three additional env vars (depending on whether I run under
> Cygwin or not):

> Only in 1.8.2: =::=::\
> Only in 1.8.2: =C:=C:\OSS\ant-usertests\env
> Only in 1.8.2: =ExitCode=00000000

Same here on Windows Vista and JDK1.6:
Only in 1.8.2: =::=::\
Only in 1.8.2: =C:=C:\projects\eclipse-workspace\usertests\env

Maarten



      

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org


      

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org

Reply via email to