ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Ken Barozzi <nicola...@apache.org>
Subject Re: <import> enhancement, it's done, but do you like how it works?
Date Thu, 11 Jul 2002 14:34:08 GMT


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>


Mime
View raw message