ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Murray, Mike" <...@ptc.com>
Subject ant.bat -noclasspath in ANT_ARGS should clearclasspath
Date Mon, 04 Jun 2007 14:56:10 GMT
We are getting "input line is too long", even though we have
-noclasspath defined in ANT_ARGS.  It appears the reason is that ant.bat
only clears the classpath when -noclasspath is passed directly on the
command line.  Shouldn't ant.bat also call clearclasspath if ANT_ARGS
contains -noclasspath?
 
Thanks, Mike
 
rem Slurp the command line arguments. This loop allows for an unlimited
number
rem of arguments (up to the command line limit, anyway).
set ANT_CMD_LINE_ARGS=%1
if ""%1""=="""" goto doneStart
shift
:setupArgs
if ""%1""=="""" goto doneStart
if ""%1""==""-noclasspath"" goto clearclasspath
set ANT_CMD_LINE_ARGS=%ANT_CMD_LINE_ARGS% %1
shift
goto setupArgs
 
rem here is there is a -noclasspath in the options
:clearclasspath
set _USE_CLASSPATH=no
shift
goto setupArgs
 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message