ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@locus.apache.org
Subject cvs commit: jakarta-ant/src/bin ant.bat
Date Wed, 06 Sep 2000 14:17:22 GMT
bodewig     00/09/06 07:17:21

  Modified:    src/bin  ant.bat
  Log:
  Allow an arbitrary number of arguments to be passed to Ant - even on Win98.
  Submitted by:	Glenn McAllister <glennm@ca.ibm.com>
  
  Revision  Changes    Path
  1.7       +19 -2     jakarta-ant/src/bin/ant.bat
  
  Index: ant.bat
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/bin/ant.bat,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ant.bat	2000/09/05 14:42:45	1.6
  +++ ant.bat	2000/09/06 14:17:19	1.7
  @@ -1,4 +1,20 @@
   @echo off
  +
  +rem Slurp the command line arguments.  This loop allows for an unlimited number of 
  +rem agruments (up to the command line limit, anyway).
  +
  +set ANT_CMD_LINE_ARGS=
  +
  +:setupArgs
  +if %1a==a goto doneArgs
  +set ANT_CMD_LINE_ARGS=%ANT_CMD_LINE_ARGS% %1
  +shift
  +goto setupArgs
  +
  +:doneArgs
  +rem The doneArgs label is here just to provide a place for the argument list loop
  +rem to break out to.
  +
   rem find ANT_HOME
   if not "%ANT_HOME%"=="" goto checkJava
   
  @@ -40,12 +56,13 @@
   if not "%JIKESPATH%" == "" goto runAntWithJikes
   
   :runAnt
  -%JAVACMD% -classpath "%LOCALCLASSPATH%" -Dant.home="%ANT_HOME%" %ANT_OPTS% org.apache.tools.ant.Main
%1 %2 %3 %4 %5 %6 %7 %8 %9
  +%JAVACMD% -classpath "%LOCALCLASSPATH%" -Dant.home="%ANT_HOME%" %ANT_OPTS% org.apache.tools.ant.Main
%ANT_CMD_LINE_ARGS%
   goto end
   
   :runAntWithJikes
  -%JAVACMD% -classpath "%LOCALCLASSPATH%" -Dant.home="%ANT_HOME%" -Djikes.class.path=%JIKESPATH%
%ANT_OPTS% org.apache.tools.ant.Main %1 %2 %3 %4 %5 %6 %7 %8 %9
  +%JAVACMD% -classpath "%LOCALCLASSPATH%" -Dant.home="%ANT_HOME%" -Djikes.class.path=%JIKESPATH%
%ANT_OPTS% org.apache.tools.ant.Main %ANT_CMD_LINE_ARGS%
   
   :end
   set LOCALCLASSPATH=
  +set ANT_CMD_LINE_ARGS=
   
  
  
  

Mime
View raw message