Re: System.getenv vs Ant 1.8.1's Execute

2010-06-01 Thread Stefan Bodewig
On 2010-05-31, Stefan Bodewig wrote: > in [1] you'll > find a simple command line tool that compares env variables between Ant > 1.8.1's code base and System.getenv. This has further been simplified, just download

Re: System.getenv vs Ant 1.8.1's Execute

2010-06-01 Thread Stefan Bodewig
I've opened Bugzilla Issue 49366 to track this and related issues. On 2010-05-31, Maarten Coene wrote: > If the difference would be a problem, maybe we could ignore the > environment variables starting with '=' on windows? I'm not sure the difference itself would be a problem. Environment varia

Re: System.getenv vs Ant 1.8.1's Execute

2010-06-01 Thread Stefan Bodewig
On 2010-06-01, Xavier Hanin wrote: > I got no problem and no difference on my Mac: Thank you for checking. I forgot to say so but the same is true for Linux (at least the Ubuntu/OpenJDK combination I've tried) and Solaris. > env $ java -version > java version "1.6.0_17" > Java(TM) SE Runtime En

Re: System.getenv vs Ant 1.8.1's Execute

2010-06-01 Thread Xavier Hanin
Hi, I got no problem and no difference on my Mac: env $ java -jar build/lib/ant-usertests.env-0.1-SNAPSHOT.jar Detected OS_NAME: mac os x Detected OS_ARCH: x86_64 Detected OS_VERSION: 10.5.8 Both methods returned the same environment information env $ java -version java version "1.6.0_17" Ja

Re: System.getenv vs Ant 1.8.1's Execute

2010-05-31 Thread Maarten Coene
These are used for * Windows drive current directory (e.g. "=C:=C:\WINNT") or the * exit code of the last command (e.g. "=ExitCode=001"). Maarten - Original Message From: Maarten Coene To: Ant Developers List Sent: Mon, May 31, 2010 9:55:33 PM Subjec

Re: System.getenv vs Ant 1.8.1's Execute

2010-05-31 Thread Maarten Coene
When doing the same test with JDK1.5, I also get the "Only in 1.8.2: =ExitCode=" difference. Maarten - Original Message From: Maarten Coene To: Ant Developers List Sent: Mon, May 31, 2010 9:55:33 PM Subject: Re: System.getenv vs Ant 1.8.1's Execute > Al

Re: System.getenv vs Ant 1.8.1's Execute

2010-05-31 Thread Maarten Coene
> 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= Same here on Windows Vista

System.getenv vs Ant 1.8.1's Execute

2010-05-31 Thread Stefan Bodewig
Hi, in [1] you'll find a simple command line tool that compares env variables between Ant 1.8.1's code base and System.getenv. In order to try it go to the env subdir and run "ant antlib" folowed by "java -jar build/lib/ant-usertests.env-0.1