You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2008/11/13 15:21:49 UTC
DO NOT REPLY [Bug 41622] ant.bat not working on win2k
https://issues.apache.org/bugzilla/show_bug.cgi?id=41622
Horst Weber <we...@sitewaerts.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |webbasan@sitewaerts.de
Status|RESOLVED |REOPENED
Resolution|WORKSFORME |
--- Comment #4 from Horst Weber <we...@sitewaerts.de> 2008-11-13 06:21:48 PST ---
I have the same problem running ant.bat on Win2k. In my case it's the section
:stripClasspath
if not _%CLASSPATH:~-1%==_\ goto findAntHome
set CLASSPATH=%CLASSPATH:~0,-1%
goto stripClasspath
which causes the trouble.
Since in my case the "stripAntHome" section didn't cause any trouble, I checked
for the differences and discovered that this error message appears if the
variable contains a string with the windows path separator...
I don't know enough about Windows batchfile programming to understand the two
lines between the label and the goto command, for now it works for me when I
delete the CLASSPATH variable in the system environment (its content was
obsolete already, so that's currently no problem for me...)
So, as an intermediate workaround I would propose:
Make sure your ANT_HOME and CLASSPATH variables are unset before running the
"ant.bat" script file.
tschüß,
webbasan.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.