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/10/04 17:48:59 UTC

svn commit: r452919 - /ant/core/trunk/build.bat

Author: stevel
Date: Wed Oct  4 08:48:58 2006
New Revision: 452919

URL: http://svn.apache.org/viewvc?view=rev&rev=452919
Log:
patch build.bat to set the NT error code if bootstrapping failed, to be consistent with the build.sh script.

Modified:
    ant/core/trunk/build.bat

Modified: ant/core/trunk/build.bat
URL: http://svn.apache.org/viewvc/ant/core/trunk/build.bat?view=diff&rev=452919&r1=452918&r2=452919
==============================================================================
--- ant/core/trunk/build.bat (original)
+++ ant/core/trunk/build.bat Wed Oct  4 08:48:58 2006
@@ -21,6 +21,8 @@
 call bootstrap.bat
 if exist bootstrap\lib\ant.jar if exist bootstrap\bin\ant.bat if exist bootstrap\bin\lcp.bat if exist bootstrap\bin\antRun.bat goto runAnt
 echo Bootstrap FAILED
+REM set the error code
+color 00
 goto cleanup
 
 :runAnt



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


Re: svn commit: r452919 - /ant/core/trunk/build.bat

Posted by Steve Loughran <st...@apache.org>.
Dominique Devienne wrote:
>> +REM set the error code
>> +color 00
> 
> Don't you love DOS... --DD
> 
> C:\> help color
> ...
> The COLOR command sets ERRORLEVEL to 1 if an attempt is made to execute
> the COLOR command with a foreground and background color that are the
> same.

You never wondered before why there is a COLOR 00 in ant.bat?

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


Re: svn commit: r452919 - /ant/core/trunk/build.bat

Posted by Dominique Devienne <dd...@gmail.com>.
> +REM set the error code
> +color 00

Don't you love DOS... --DD

C:\> help color
...
The COLOR command sets ERRORLEVEL to 1 if an attempt is made to execute
the COLOR command with a foreground and background color that are the
same.

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