How to order the classpath for a custom ant task
conficio <[email protected]> Mon, 27 Apr 2009 07:19:07 -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-tp23257302p23257302.html Sent from the Ant Contrib mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects