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=38914>.
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=38914





------- Additional Comments From [EMAIL PROTECTED]  2006-03-10 05:09 -------
I've just confirmed this issue with the ant code base (trunk).

If you have no CLASSPATH variable at all, ant -p/-projecthelp works fine
If you set CLASSPATH="", ant -p jsut executes the default target
If you set CLASSPATH to some meaningful value, ant -p/-projecthelp works fine

I think this is to do with Windows not allowing you to easily 'unset' an
environment variable.  Obviously with a CLASSPATH="", something is going screwy
with Ant

As to the 'Ant must have tools.jar etc etc', Java5 (Java6rc and probably
Java1.4) is tightly integrated into Windows (moreso than previously).  I've come
across this problem when wanting to have different versions of Java installed
and testing against them - JAVA_HOME=d:\java\jdk1.4.1, but my machine still
thinks that java -version = 1.6.0-rc1 - I think that there may be a registry
issue here with the newer versions of Java looking in the registry (on Windows
XP) instead of honouring the JAVA_HOME env veriable.  I've never had any problem
on Linux - just change JAVA_HOME and you are using a new/old Java - WindowsXP +
Java5+ exhibit a very different behaviour in my experience

Dennis:

Try with no CLASSPATH variable at all - you should be fine, setting CLASSPATH=""
in Windows is obviously not 'unsetting' the value and causing some ant
strangeness.  I'll try to track down the issue as I'm on XP here at work

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to