ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Landis <Sean_Landis-CSL...@email.mot.com>
Subject Re: inheriting references
Date Fri, 15 Feb 2002 15:02:27 GMT
Thanks Stefan,

Will a later version of ant support this? It seems like a very 
practical feature.

Sean

Stefan Bodewig wrote:
> 
> 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