ant-user mailing list archives

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

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

Are you talking about
org.apache.tools.ant.taskdefs.optional.extension.resolvers.AbtResolver?
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.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message