ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: override
Date Fri, 01 Aug 2003 15:58:49 GMT
On second though, instead of renaming, why don't we use IDs, which are
common and well understood:

<import file="a.xml" id="a" />
<import file="b.xml" id="b" />

<override-target target="init">
  <depends refid="a" target="init" />
  <depends refid="a" target="init" />
</override-target>

or better yet IMHO:

<override-target target="init">
  <super refid="a" />
  <super refid="b" />
</override-target>

The <super> notation feels very natural, and I don't see why one would need
to called a conflicting target (from an imported build file) from anywhere
but the same-name target that resolves the conflict...

--DD

PS: I would still like to be able to use <depends target="..."> in build
    file that do not do any imports, to avoid wrapping long attributes
    like the 'depends' one often is.

> -----Original Message-----
> From: Conor MacNeill [mailto:conor@cortexebusiness.com.au]
> Sent: Friday, August 01, 2003 9:24 AM
> To: Ant Developers List
> Subject: Re: override
> 
> <import file="a.xml" prefix="a"/>
> <import file="b.xml" prefix="b"/>
> 
> <override target="a.init">
> 	<antcall target="b.init"/>
> </override>
> 
> Thoughts?
> 
> Conor

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message