https://issues.apache.org/bugzilla/show_bug.cgi?id=56337

--- Comment #4 from Antoine Levy-Lambert <[email protected]> ---
I understand that you want to tie a target to an extension point and also have
the possibility to override a default implementation

does the below solve your problem ?

<project name="build">


    <import file="hello.xml" />

    <target name="hi-impl">
        <echo message="Hello" />
    </target>

</project>

<project name="hello">

    <extension-point name="greeting" />
    <target name="hi" extensionOf="greeting" depends="hi-impl">
    </target>
        <target name="hi-impl">
        <echo message="Hi!!!" />
        </target>

</project>

the output is this :

bash-3.2$ ant greeting
Buildfile: /Users/antoine/dev/asf/56337/build.xml

hi-impl:
     [echo] Hello

hi:

greeting:

BUILD SUCCESSFUL
Total time: 0 seconds

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to