ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 39300] - Classpath with '\' as last character breaks the Launcher when using ant.bat
Date Thu, 13 Apr 2006 16:09:40 GMT
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=39300>.
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=39300





------- Additional Comments From Vampire@Masters-of-Disaster.de  2006-04-13 16:09 -------
No, I didn't try, but as far as I can see, there the problem shouldn't happen
anymore that command-line-args are eaten by the classpath, but only because it
is impossible to reach :runAntWithClasspath or :runAntWithJikesAndClasspath
where the error occurs in the current ant.bat, which is another, new introduced,
bug.

[quote]
:runAnt
if "%_USE_CLASSPATH%"=="no" goto runAntNoClasspath

:runAntNoClasspath
"%_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%
rem Check the error code of the Ant build
if not "%OS%"=="Windows_NT" goto onError
set ANT_ERROR=%ERRORLEVEL%
goto end

:runAntWithClasspath
"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar"
"-Dant.home=%ANT_HOME%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% -cp
"%CLASSPATH%" %ANT_CMD_LINE_ARGS%
rem Check the error code of the Ant build
if not "%OS%"=="Windows_NT" goto onError
set ANT_ERROR=%ERRORLEVEL%
goto end
[/quote]

if "%_USE_CLASSPATH%"=="no" goto runAntNoClasspath
jumps to :runAntNoClasspath, ok, but if "%_USE_CLASSPATH%"=="yes" then it just
goes on to the next line which is also :runAntNoClasspath.
Same goes for the Jikes-variants

-- 
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


Mime
View raw message