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 20286] - All ant commands get "java" usage help.
Date Thu, 29 May 2003 20:51:28 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20286>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20286

All ant commands get "java" usage help.

levylambert@tiscali-dsl.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME



------- Additional Comments From levylambert@tiscali-dsl.de  2003-05-29 20:51 -------
I am working on Windows 2000, and ant.bat works perfectly for me.
If there is something special about Windows XP which would require a change of 
ant.bat, let us know.

One thing which might help you would be to set the environment variable ANT_HOME 
to the directory where you installed ant. (Go to the Control Panel, then System, 
then the Advanced tab and from there add the environment variable).
Also have a look to see if JAVA_HOME is set to a proper value, and if %
JAVA_HOME%/bin and %ANT_HOME%/bin are in your path.
You might want to edit your ant.bat and set the echo on to find out what is 
going wrong.
Here is the command with which ant.bat starts ant on my PC
I have just abridged the classpath, which should contain all the jars under C:
\ant\lib

C:\dev\testant>ant -f testpathconvert.xml


"C:\j2sdk1.4.1_01\bin\java.exe"  -classpath "C:\j2sdk1.4.1_01\lib\tools.jar;C:
\ANT\lib\ant-xslp.jar;..." "-Dant.home=C:\ANT" org.apache.tools.ant.Main  -f 
testpathconvert.xml

C:\dev\testant>echo %ANT_HOME%
C:\ANT

C:\dev\testant>echo %JAVA_HOME%
C:\j2sdk1.4.1_01

I will close this bug as "WORKSFORME".

Mime
View raw message