You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Murray, Mike" <mb...@ptc.com> on 2007/06/04 16:56:10 UTC
ant.bat -noclasspath in ANT_ARGS should clearclasspath
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