ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: inheriting references
Date Fri, 15 Feb 2002 07:20:12 GMT
On Thu, 14 Feb 2002, Sean Landis <Sean_Landis-CSL044@email.mot.com>
wrote:
> Are reference identifiers inherited by default across ant tasks?

Not in any released version of Ant, but in CVS (and only if you ask
for it).

> In a top level ant build file I have a path:
> 
> <path id="foo" ... />

Actually, inheriting a path is possible by "tunneling" it in a
property (since Ant 1.2).  In you parent build file use

<property name="tunneled.foo" refid="foo" />

and in your child build file

<path id="foo">
  <pathelement path="${tunneled.foo}" />
</path>

Stefan

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message