ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gregory Boissinot <gregory.boissi...@gmail.com>
Subject Re: include path in <classpath>
Date Wed, 20 May 2009 06:49:15 GMT

You must use 

<classpath>
  <path refid="apache.beehive.classpath"/>
</classpath>

or in your case, the shortcut

<classpath refid="apache.beehive.classpath" />



Cole, Derek E wrote:
> 
> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Ant-and-Manifest-tp23619537p23629964.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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


Mime
View raw message