ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: ExtensionPoints + Dependencies
Date Tue, 17 Aug 2010 07:27:26 GMT
On 2010-08-17, <Jan.Materne@rzf.fin-nrw.de> wrote:

> If I have a buildfile with extension points and their extensions, I
> think I would be able to run the extensions as part of the whole build
> via extension-points and directly. But if I run the target directly I
> would think, that dependencies are also executed, but they are not.

I really needed your example to understand what you are after 8-)

> <project default="C">
>     <echo>Ant-Version ${ant.version}</echo>
>     <target name="A"/>
>     <extension-point name="B" depends="A"/>
>     <target name="C" extensionOf="B"/>
> </project>

You expect Ant to execute A if you ask it to execute C, right?

> Is this forgotten or am I wrong?

IMHO you are wrong.  extensionOf adds C to the depends list of B but
doesn't change anything for C itself.

Stefan

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


Mime
View raw message