ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: EasyAnt phases
Date Wed, 12 Nov 2008 05:14:32 GMT
On 2008-11-11, Remie Bolte <> 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 .../>

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">

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.


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

View raw message