ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Inter-project classpath refid propagation ?
Date Mon, 21 Jan 2002 15:22:57 GMT
On Mon, 21 Jan 2002, Joel Cordonnier <joelcordonnier@yahoo.fr> wrote:

> QUESTION FOR Ant-1.4.1
>
> Is this possible the propagate a <classpath refid=""..> for a
> project to a sub project ?

First of all, good news for 1.5 - you can inherit all types of
references there.

Bad news, you can't do it in 1.4.1.

But good news for you, in the case of <path>, you can "tunnel" it via
a property.

<path id="some-thing">
<property name="some-thing" refid="some-thing" />

will create a property that holds a string representation of your
path. This one will travel down to your sub build and you can recreate
a <path> from it via

<path path="${some-thing}" id="some-thing" />

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