ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Connor Arpe <kevina...@gmail.com>
Subject [PATCH] ant-core/docs/manual/Tasks/taskdef.html
Date Mon, 15 Nov 2010 16:49:40 GMT
Anters,

Thank you very much for your help.  As promised, I would commit back a
patch.  In this case, docs are the right solution.

I have upgraded the TaskDef Task docs.

Attached is my patch from ant-core tar/gzip'd.

Thanks,
Kevin Connor ARPE
Hongkong

On Tue, Oct 26, 2010 at 3:31 PM, Stefan Bodewig <bodewig@apache.org> wrote:
> On 2010-10-25, Dominique Devienne wrote:
>
>> I don't remember the details, but it's likely your two independent
>> <taskdef> that force using separate class loaders. Using either a
>> single taskdef loading a .properties file, or using a classpathref
>> might use the same classloader instead.
>
> The loaderref attribute is the ingredient needed to have different
> <taskdef> tasks share the same classloader (provided they use the same
> classpath as well, that is).
>
>> Also putting your tasks into an AntLib in its own Jar with a proper
>> antlib.xml manifest would also likely use a single class loader.
>
> Using just one <taskdef> either via an Antlib descriptor or a property
> file and the resource attribute to define both tasks would work.
>
>> But as Jeffrey wrote, you could have your tasks read/write properties
>> to communicate, or pass them a reference to a datatype instance as
>> well.
>
> +1
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>
>

Mime
View raw message