ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 56337] Extension point target rewriting
Date Fri, 04 Apr 2014 01:18:04 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=56337

--- Comment #4 from Antoine Levy-Lambert <antoine@apache.org> ---
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.

Mime
View raw message