On 2008-11-11, Remie Bolte <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]