ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: jakarta-ant/src/script ant.bat
Date Sat, 21 Jul 2001 13:03:20 GMT
conor       01/07/21 06:03:19

  Modified:    src/script ant.bat
  Log:
  Add exit code to batch files
  
  PR:	314
  
  Revision  Changes    Path
  1.12      +16 -0     jakarta-ant/src/script/ant.bat
  
  Index: ant.bat
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/script/ant.bat,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- ant.bat	2001/07/12 12:12:51	1.11
  +++ ant.bat	2001/07/21 13:03:19	1.12
  @@ -87,6 +87,7 @@
   echo.
   
   :checkJikes
  +set ANT_ERROR=no
   if not "%JIKESPATH%" == "" goto runAntWithJikes
   
   :runAnt
  @@ -97,14 +98,29 @@
   "%_JAVACMD%" -classpath "%LOCALCLASSPATH%" -Dant.home="%ANT_HOME%" -Djikes.class.path="%JIKESPATH%"
%ANT_OPTS% org.apache.tools.ant.Main %ANT_CMD_LINE_ARGS%
   
   :end
  +if errorlevel 1 set ANT_ERROR=yes
   set LOCALCLASSPATH=
   set _JAVACMD=
   set ANT_CMD_LINE_ARGS=
   
   if not "%OS%"=="Windows_NT" goto mainEnd
  +
   :winNTend
  +if %ANT_ERROR% == yes goto winNTError
  +
  +:winNTOK 
   @endlocal
  +set ANT_ERROR=no
  +goto :mainEnd
   
  +:winNTError 
  +@endlocal
  +set ANT_ERROR=yes
  +goto :mainEnd
  +
   :mainEnd
   if exist "%HOME%\antrc_post.bat" call "%HOME%\antrc_post.bat"
  +if %ANT_ERROR%=="yes" exit 1
  +
  + 
   
  
  
  

Mime
View raw message