Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

Taskdef and classpath

Knuplesch, Jürgen

2010-03-30

Replies: Find Java Web Hosting

Author LoginPost Reply
Hello,

I have an ANT-task that I call inside my buildfiles.
I have access to the source of this task.

I have problems with elements on the classpath, because I use different XML-parsers.

How can I define my task in a way, that there are only the elements on its classpath (e.g. the xml parser), that I want, especially there should not be all the elements of ANT on this classpath?

What is the correct / best way:

1.just define a classpath in the taskdef task (this does not seem to work)
2.create a separate classloader in this task. But how do I configure it in a way, that I get rid of all the ANT classpath elements??
3.???

Greetings Juergen

--
Jürgen Knuplesch

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.