I finally found out what was wrong, you need either Xalan 2.x to do the
optional 
junit and juintreport tasks. I installed this xalan and added it to the
classpath.

CLASSPATH=C:\jdk1.3.1_01\lib\tools.jar;c:\tomcat\lib\servlet.jar;C:\xalan-j_
2_2_
0\bin\

however in the bin directory there is something that conflicts with and
sends
ant absolutely insane. I don't know what it is but I changed the classpath 
so that it read 

CLASSPATH=C:\jdk1.3.1_01\lib\tools.jar;c:\tomcat\lib\servlet.jar;C:\xalan-j_
2_2_
0\bin\xerces.jar

And now everything works, however I havent tried running junitreport yet. If
anyone has managed to get junitreport working can they give me a shout (with
their config files).

Thanks for all your help

Bryan







 


-----Original Message-----
From: Conor MacNeill [mailto:[EMAIL PROTECTED]]
Sent: 31 January 2002 11:28
To: Ant Users List
Subject: Re: javadoc: invalid flag: -Dant.home=C;\jakarta-ant-1.4.1


Hunt, Bryan wrote:

> if I try that ant just refuses to work alltogether 
> 
> C:\ichara\build>set ant
> ANT_HOME=c:\jakarta-ant-1.4.1\
> 
> C:\ichara\build>set ant_home=c:\jakarta-ant-1.4.1
> 
> C:\ichara\build>ant
> Usage: java [-options] class [args...]
>            (to execute a class)
>    or  java -jar [-options] jarfile [args...]
>            (to execute a jar file)
> 


OK, you definitely should not have the trailing slash.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1849

So, the problem we need to fix is the problem above.

Please change the ant.bat script to turn echo on - look at the first 
line, the change should be obvious. Now run ant again with ANT_HOME with 
the slash. Send us the output to see what is going wrong.

Conor


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to