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" Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-9M3125) Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode) ---- Xavier On Mon, May 31, 2010 at 17:33, Stefan Bodewig <bode...@apache.org> wrote: > Hi, > > in <http://svn.apache.org/repos/asf/ant/sandbox/usertests/>[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-SNAPSHOT.jar" throwing in a > -v if you like to see the raw data. > > Before I launch this to our user community I wanted to let you take a > look to see whether you spot any dumb errors. > > 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 > > The keys of those vars are "=::", "=C:" and "=ExitCode" respectively. > The "=" inside of the keys will wreak havoc on our parsing code. > > When I use /usr/bin/env under Cygwin the keys are "!::" and "!C:" > respecively. "set" inside a CMD.EXE window simply doesn't show them at > all (which was to be expected). > > Any ideas? > > Stefan > > [1] you must check out this directory because of externals the env > subdir relies on. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org > For additional commands, e-mail: dev-h...@ant.apache.org > > -- Xavier Hanin - 4SH France - http://www.4sh.fr/ BordeauxJUG creator & leader - http://www.bordeauxjug.org/ Apache Ivy Creator - http://ant.apache.org/ivy/