Nicola Ken Barozzi wrote:
>
> Jose Alberto Fernandez wrote:
...
>> One pattern you guys forgot is:
>>
>> <target name="mytarget" depends="super.mytarget">
>> <dostuff1/>
>> </target>
>>
>> which adds more things to do on the target. And:
>>
>> <target name="mytarget"
>> depends="mytarget-local,super.mytarget"/>
>>
>> <target name="mytarget-local">
>> <dostuff1/>
>> </target>
>>
>> which executes super after. Both will mix the
>> dependency trees. This I think uses more of the power
>> of ANT than just limiting ourselves to <antcall/>
>> of course <antcall/> should be supported.
>
>
> Ah ok, cool :-)
>
I just tested and it already works.
build.xml:
<target name="mb2" depends="super.mb2">
<echo message="*Redefined* Sub2 build called /pre/ :-)"/>
<!-- <antcall target="super.mb2"/> -->
<echo message="*Redefined* Sub2 build called /post/ :-)"/>
</target>
gives
super.mb2(and related dependencies first)->echo->echo
--
Nicola Ken Barozzi nicolaken@apache.org
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
---------------------------------------------------------------------
--
To unsubscribe, e-mail: <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>
|