R
Roedy Green
Ever since I installed JDK 1.5.0_05 ant seems to ignore anything on
the command line. it ignores -debug or targets.
The ant.bat file is unchanged. I have invoked ant.bat explicitly in
case one other ant.bat appeared on the path without success.
I can get ant to run any target by modifying the default inside the
build.xml. It appears to be a command line problem.
The line that ant.bat generates looks like this:
"E:\program files\java\jdk1.5.0_05\bin\java.exe" -classpath
"e:\apache-ant-1.6.5\lib\ant-launcher.jar"
"-Dant.home=e:\apache-ant-1.6.5" org.apache.tools.ant.launch.Launcher
-cp ".;C:\;E:\" zip
where zip is the name of my target
I did a diagnostic and discovered that ant thinks the java classpath
has two elements, mistaking my zip target for part of the classpath.
this indicates there may be some change in command line processing in
the new Java version.
java.class.path : e:\apache-ant-1.6.5\lib\ant-launcher.jar;C:\com
tcard\.\;C:\;E:\apache-ant-1.6.5\bin\" zip;E:\apache-ant-1.6.5\;...
I found that reversing the order of the parms now makes Ant work
"E:\program files\java\jdk1.5.0_05\bin\java.exe" -classpath
"e:\apache-ant-1.6.5\lib\ant-launcher.jar"
"-Dant.home=e:\apache-ant-1.6.5" org.apache.tools.ant.launch.Launcher
zip -cp ".;C:\;E:\"
where zip is my target.
the command line. it ignores -debug or targets.
The ant.bat file is unchanged. I have invoked ant.bat explicitly in
case one other ant.bat appeared on the path without success.
I can get ant to run any target by modifying the default inside the
build.xml. It appears to be a command line problem.
The line that ant.bat generates looks like this:
"E:\program files\java\jdk1.5.0_05\bin\java.exe" -classpath
"e:\apache-ant-1.6.5\lib\ant-launcher.jar"
"-Dant.home=e:\apache-ant-1.6.5" org.apache.tools.ant.launch.Launcher
-cp ".;C:\;E:\" zip
where zip is the name of my target
I did a diagnostic and discovered that ant thinks the java classpath
has two elements, mistaking my zip target for part of the classpath.
this indicates there may be some change in command line processing in
the new Java version.
java.class.path : e:\apache-ant-1.6.5\lib\ant-launcher.jar;C:\com
tcard\.\;C:\;E:\apache-ant-1.6.5\bin\" zip;E:\apache-ant-1.6.5\;...
I found that reversing the order of the parms now makes Ant work
"E:\program files\java\jdk1.5.0_05\bin\java.exe" -classpath
"e:\apache-ant-1.6.5\lib\ant-launcher.jar"
"-Dant.home=e:\apache-ant-1.6.5" org.apache.tools.ant.launch.Launcher
zip -cp ".;C:\;E:\"
where zip is my target.