ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fei Sha <Fei....@prism.uvsq.fr>
Subject Computed ids not visible in sub projects?
Date Fri, 23 Aug 2002 12:37:07 GMT
Hi, all
	I have a build file like this:

----------------------------------------------------

<project name="x" default="x">

	<property name="cpid" value="classpath_id" />
	
	<path id="${cpid}">
		<pathelement location="."/>
	</path>

	<target name="x">		
		<antcall
			target="y"
			inheritrefs="true" >
		</antcall>
	</target>
	
	<target name="y">		
		<java classname="test">
			<classpath refid="${cpid}" />		
		</java>
	</target>
	
</project>

-----------------------------------------------------

E:\exmlmedia\qa>ant -f x.xml
Buildfile: x.xml

x:

y:
      [java] Reference classpath_id not found.

BUILD SUCCESSFUL
Total time: 3 seconds

The "classpath_id" is not visible in the sub project.
If I hard code the name as:

	<path id="classpath_id">
		<pathelement location="."/>
	</path>

Then it works fine. Is this intended behavior?

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?

Thanks!

Fei Sha


--
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