You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Jane Young-Lau <ja...@Sun.COM> on 2005/10/06 23:10:58 UTC

Another classpath question.

Hi,

I have a wrapper script that calls the ant script.  This wrapper script 
defines some environments variables and the classpath.  Say that the 
wrapper script has foo.jar set in the CLASSPATH. 
If there is a build.xml file that uses the typedef tasks like this:

<typedef name="test" classname="org.example.abc" classpath="bar.jar">

Say that the class, org.example.abc also exists in foo.jar which is set 
in the CLASSPTH. 
I notcied that ant will call the org.example.abc in foo.jar instead of 
bar.jar.

Is there a way to force ant to load the class from the classpath 
specified in typedef instead of from the CLASSPATH?

thanks,
jane

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org