With jdk 1.4.0 and ant 1.4.1 on Windows XP build file entry <property environment="env"/> failed. Sourcecode inspection showed why: the os.name property is only interpreted correctly for nt and 2000, otherwise is thought of win 9x. In sources from Oct. 11th 2001 you have to alter the Execute class like 231,232c231,232 < if ( osname.indexOf("nt") >= 0 || osname.indexOf("2000") >= 0 || osname.indexOf("xp") >= 0) { < // Windows 2000/NT/XP --- > if ( osname.indexOf("nt") >= 0 || osname.indexOf("2000") >= 0 ) { > // Windows 2000/NT This helped. BTW: using jdk 1.3.1_03 worked on the same machine as that returns Windows 2000 as os.name!
fixed many months ago, with a pointer to the fact on the ant news page. *** This bug has been marked as a duplicate of 6456 ***