You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by st...@apache.org on 2006/03/03 14:37:51 UTC

svn commit: r382808 - /ant/core/trunk/src/script/ant.bat

Author: stevel
Date: Fri Mar  3 05:37:51 2006
New Revision: 382808

URL: http://svn.apache.org/viewcvs?rev=382808&view=rev
Log:
bug ID 32069: resetting an undefined env variable changes the errorlevel.

Modified:
    ant/core/trunk/src/script/ant.bat

Modified: ant/core/trunk/src/script/ant.bat
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/script/ant.bat?rev=382808&r1=382807&r2=382808&view=diff
==============================================================================
--- ant/core/trunk/src/script/ant.bat (original)
+++ ant/core/trunk/src/script/ant.bat Fri Mar  3 05:37:51 2006
@@ -1,6 +1,6 @@
 @echo off
 
-REM  Copyright 2001,2004-2005 The Apache Software Foundation
+REM  Copyright 2001,2004-2006 The Apache Software Foundation
 REM
 REM  Licensed under the Apache License, Version 2.0 (the "License");
 REM  you may not use this file except in compliance with the License.
@@ -14,6 +14,12 @@
 REM  See the License for the specific language governing permissions and
 REM  limitations under the License.
 
+REM This is an inordinately troublesome piece of code, particularly because it
+REM tries to work on both Win9x and WinNT-based systems. If we could abandon '9x
+REM support, things would be much easier, but sadly, it is not yet time.
+REM Be cautious about editing this, and only add WinNT specific stuff in code that
+REM only runs on WinNT.
+
 if exist "%HOME%\antrc_pre.bat" call "%HOME%\antrc_pre.bat"
 
 if "%OS%"=="Windows_NT" @setlocal
@@ -149,7 +155,10 @@
 for %%i in (1 10 100) do set err%%i=
 
 :end
+rem bug ID 32069: resetting an undefined env variable changes the errorlevel.
+set _JAVACMD=DUMMY_VAL
 set _JAVACMD=
+set ANT_CMD_LINE_ARGS=DUMMY_VAL
 set ANT_CMD_LINE_ARGS=
 
 rem Set the return code if we are not in NT.  We can only set



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