ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: AntResolver Significance - In Custom Tasks
Date Tue, 10 Nov 2009 05:05:30 GMT
On 2009-11-06, Raja Nagendra Kumar <> wrote:

> What is the significance of AntResolver when compared to directly creating
> Ant() task.

Are you talking about
This class doesn't have any significance beyond the jarlib-resolve task
and is not related to the Ant task at all.

> In this approach of creating Ant() would not have any owner task and
> getProject() should return project of the build file it is pointing to.

This would violate Ant's contracts - which may be fine for your own
class.  getProject is guaranteed to return the Project instance a task
is part of.

The existing getNewProject method on the Ant task should give you the
desired information.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message