You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Cole, Derek E" <de...@lmco.com> on 2009/05/19 18:23:44 UTC

include path in

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


Re: include path in

Posted by Gregory Boissinot <gr...@gmail.com>.
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