ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject copying references
Date Thu, 31 Aug 2006 14:39:02 GMT
DD, what was that task you had for doing something
with references at a different time than Ant normally
would?  Seems like it is attached to a BZ issue
someplace...  Do you know what I'm talking about?

All: shouldn't Ant have an e.g. <refcopy> task?

<refcopy refid="src" to="dest" />

Example, given the custom foo type:

<foo id="a" />
<foo id="b" refid="a" />

"b" != "a"; "b" is a distinct instance which by
convention has been programmed to delegate to "a".  If
"a" is subsequently redefined, "b" points to the NEW
"a".

Start over:

<foo id="a" />
<refcopy refid="a" to="b" />

Now, "b" == "a"; redefining "a" won't change that. 
This task seems useful, i.e. there's not AFAIK a way
to do this in Ant without Java or scripting.  It also
seems trivial to write.  Have I missed anything?

-Matt


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Mime
View raw message