How to order the classpath for a custom ant task

conficio <[email protected]> Fri, 24 Apr 2009 14:47:09 -0700 (PDT)
Newsgroups gmane.comp.java.ant-contrib.devel
Message-ID <[email protected]>
Hi there,
I hope someone has solved the same problem before.

I write an ant task that calls a web service suing apache cxf. I define the
classpath in the taskdef and for the exclusive tasks this works fine.
However Java 1.6 does include the JAX-WS libraries and CXF wants to use its
own. So I need to make sure that my taskdef defines its classapth to
overwrite the ant classpath.

I have read the FAQ http://ant.apache.org/faq.html regarding junit and style
tasks, etc. If I understand correctly this does mean that the ant
classloader always delegates first and so finds the JRE classes in
classes.jar. 

Is there any way to change that behavior and have my taskdef overwrite the
Global class loader?

Kaj
-- 
View this message in context: http://www.nabble.com/How-to-order-the-classpath-for-a-custom-ant-task-tp23225386p23225386.html
Sent from the Ant Contrib mailing list archive at Nabble.com.


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com