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

Reply via email to