https://issues.apache.org/bugzilla/show_bug.cgi?id=41622


Horst Weber <[EMAIL PROTECTED]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[EMAIL PROTECTED]
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |




--- Comment #4 from Horst Weber <[EMAIL PROTECTED]>  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.

Reply via email to