You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2005/02/22 10:40:59 UTC
DO NOT REPLY [Bug 33686] New: -
ant.bat does not use command line arguments if classpath set on Windows
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33686>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=33686
Summary: ant.bat does not use command line arguments if classpath
set on Windows
Product: Ant
Version: 1.6.2
Platform: PC
OS/Version: Windows 2000
Status: NEW
Severity: blocker
Priority: P2
Component: Wrapper scripts
AssignedTo: dev@ant.apache.org
ReportedBy: tleigh@ndsuk.com
Unzip the 1.6.2 installation of ant on windos and set your classpath. At the
command prompt (with a valid build.xml) type:
ant thisdoesnotexist
Expected:
ant returns stating that the target does not exist
Actual:
ant builds the default target and igonores the option
The problem is in ant.bat line 86 which is:
:runAntWithClasspath
"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.
home=%ANT_HOME%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% -lib "%
CLASSPATH%" %ANT_CMD_LINE_ARGS%
goto end
and should be:
:runAntWithClasspath
"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.
home=%ANT_HOME%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% %
ANT_CMD_LINE_ARGS% -lib "%CLASSPATH%"
goto end
Note that the %ANT_CMD_LINE_ARGS% should always be just after the %ANT_ARGS% and
before the -lib.
Can someone please just update the script.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org