ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cole, Derek E" <derek.e.c...@lmco.com>
Subject include path in <classpath>
Date Tue, 19 May 2009 16:23:44 GMT
Hello all,

I am interested in passing in a <path> reference to the <classpath> tags
of my <java> call. How can this be done? 

	<!-- Apache Beehive jars-->
	<path id="apache.beehive.classpath">
		<fileset dir="${apache-beehive.lib.netui.dir}">
			<include name="**/*.jar"/>
		</fileset>
		<fileset dir="${apache-beehive.lib.controls.dir}">
			<include name="*.jar"/>
		</fileset>
	</path>

	<echo>CP:${toString:apache.beehive.classpath}</echo>

CP: outputs the correct thing, however, when I then try to use that like

       <classpath>
		<pathelement path="${apache.beehive.classpath}" />
       </classpath>

I get this kind of error message in my log:

dropping /tools/build/antstuff/apache.beehive.classpath from path as it
doesn't exist

what am I doing wrong?

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


Mime
View raw message