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