Put an echo before %_JAVACMD%. That way you'll see what is actually getting
called at the command line. There's nothing magic about the quotes or the %
signs, your shell is just gonig to do substitions-- or not-- based on how
brain-dead it is.
I'm betting one of those variables is mucked up in such a way that the
quotes are grouping something as a single argument vs. multiple arguments.
-----Original Message-----
From: T Master [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 19, 2001 11:27 AM
To: ant user mailist
Subject: [antlist] error in ant.bat file ?
On Win2000, my ant.bat file (v1.3) has the section:
****
:runAnt
echo %ANT_CMD_LINE_ARGS%
%_JAVACMD% -classpath %LOCALCLASSPATH% -Dant.home="%ANT_HOME%" %ANT_OPTS%
org.apache.tools.ant.Main %ANT_CMD_LINE_ARGS%
goto end
****
Apparently, the quotes around %ANT_HOME% cause a problem.
When "ant.bat" is entered at the cmd prompt, the following output is
produced:
C:\dev\code>ant.bat
ECHO is off.
Usage: java [-options] class [args...]
(to execute a class)
or java -jar [-options] jarfile [args...]
(to execute a jar file)
where options include:
-cp -classpath <directories and zip/jar files separated by ;>
set search path for application classes and resources
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version
-? -help print this help message
-X print help on non-standard options
C:\dev\code>
However, removing the quotes, allows ant to work.
Is this a problem with configuration of my paths?
T Master