ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: EasyAnt phases
Date Wed, 12 Nov 2008 05:14:32 GMT
On 2008-11-11, Remie Bolte <remie@backbase.com> wrote:

> Can you explain the concept of targets being able to add themselfs as
> dependencies?
> I can't really picture this :)

You have one build file with something like

<phase name="ready-to-compile" depends="setup"/>

<target name="compile" depends="ready-to-compile">
    <javac .../>
</target>

as a template for Java compilation.  This one gets imported or
included in another build file that needs to generate some source
files.  This build file would contain

<target name="generate-sources" phase="ready-to-compile">
    ...
</target>

and the phase attribute would add "generate-sources" to the depends
attribute of "ready-to-compile".

This is useful for build files that explicitly want to define
extension points.

Stefan

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


Mime
View raw message