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.

Is this forgotten or am I wrong?


Jan

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

C:\TEMP\ant-test>ant
Buildfile: C:\TEMP\ant-test\build.xml
     [echo] Ant-Version Apache Ant version 1.8.1 compiled on April 30
2010

C:

BUILD SUCCESSFUL
Total time: 1 second
C:\TEMP\ant-test>ant B
Buildfile: C:\TEMP\ant-test\build.xml
     [echo] Ant-Version Apache Ant version 1.8.1 compiled on April 30
2010

A:

C:

B:

BUILD SUCCESSFUL
Total time: 0 seconds

Reply via email to