ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oreizy, Nima" <NOre...@ebuilt.com>
Subject [PATCH] Retrieving environment variables while running in JDK1.4 on Windows XP
Date Fri, 08 Mar 2002 00:04:42 GMT
New in JDK1.4 is that it uniquely identifies Windows XP.
System.getProperty("os.name") now returns "Windows XP". Ant doesn't expect
this so it makes the wrong system call to retrieve the environment
variables. This throws an exception in the 16 bit MS-DOS Subsystem and
ultimately throws a NullPointerException and causes the build to fail. Patch
to .\src\main\org\apache\tools\ant\taskdefs\Execute.java is attached.

nima.


Mime
View raw message