ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike McNally ...@works.com>
Subject Re: multiple definion of taskdef loads the same libraries again?
Date Wed, 12 Mar 2003 14:27:11 GMT
> Is there any possibility to tell ant not to define task with
> taskdef if the task has already been defined?

Try using the "loaderid" attribute with a consistent identifier
(just make up a name) in all your <taskdef> tags.  I think that
the Ant "Definer" code will construct  a fresh class loader for
your task each time you call <taskdef> if you don't explicitly
identify a class loader.  (I assume your task code is not on
the system classpath.)

--
[ you are my main foo ] Mike McNally -- m5@works.com

Mime
View raw message