ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Vogel <pvo...@arsin.com>
Subject RE: CLASSPATH diagnostic tools?
Date Sun, 10 Jun 2001 05:36:49 GMT
Don't know if you got an answer yet, I'm falling behind on this list :-)

Anyway: ant -verbose is your friend...

-Peter

> -----Original Message-----
> From: asr@ufl.edu [mailto:asr@ufl.edu]
> Sent: Friday, June 01, 2001 9:22 AM
> To: ant-user@jakarta.apache.org
> Subject: CLASSPATH diagnostic tools?
> 
> 
> 
> 
> Greetings, all.
> 
> 
> I'm having a very frustrating time using ant; I'm getting a 
> wide variety of
> "class not found" errors which I -think- I am setting correctly.
> 
> However, I can't prove it to myself, because I don't know 
> what command ant is
> running when it (for instance) runs java.
> 
> What I -do- know is that the following task:
> 
>  <target name="runtests" depends="compiletests" >
>      <java classname="junit.textui.TestRunner" 
>          taskname="runtests" failonerror="true"  >
>          <arg value="test${app.name}"/>
>          <classpath>
>              <path refid="compile.classpath"/> 
> 	     <path refid="junit.classpath" /> 
>              <pathelement location="${build.home}${suffix.test}" />
>              <pathelement 
> location="${dist.home}${suffix.lib}${app.name}.jar" />
>              <pathelement location="/usr/IBMWebAS/lib/ibmjndi.jar"/>
>          </classpath>
>      </java>
>  </target>
> 
> returns an error of class not found if my classpath is empty. 
>  If my classpath
> consists of 
> 
> /usr/IBMWebAS/lib/ibmjndi.jar
> 
> then the test runs.
> 
> Note that the noted jar is in the <classpath> stanza of the 
> <java> directive.
> 
> When running ant -debug, the <javac> task includes debugging 
> information about
> classpaths.  Is there a design reason that the <java> task does not?
> 
> 
> - Allen S. Rout
> 

Mime
View raw message