ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Computed ids not visible in sub projects?
Date Mon, 02 Sep 2002 13:48:17 GMT
On Fri, 23 Aug 2002, Fei Sha <Fei.Sha@prism.uvsq.fr> wrote:

> 	<path id="${cpid}">

> 		<java classname="test">
> 			<classpath refid="${cpid}" />		

> The "classpath_id" is not visible in the sub project.
> If I hard code the name as:
> 
> 	<path id="classpath_id">

> Then it works fine. Is this intended behavior?

In a way, yes.  Properties are not expanded in the id attribute, so
your path has the literal id ${cpid}.

> Another thing, when u want to see the value of a variable, u just
> echo ${v} anyway similar to see what an id refers to?

By using a helper property and <property>'s refid attribute.

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