ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: Passing fileset to child ant project error
Date Wed, 03 Jul 2002 19:05:32 GMT
The <property name="p" refid="id"/> trick works only for <path>. You need to
use <pathconvert> to go from <fileset> to <property>, or create a dummy
<path><fileset refid="id"/></path>. --DD

-----Original Message-----
From: David Adams [mailto:DAdams@ignitesports.com] 
Sent: Wednesday, July 03, 2002 9:34 AM
To: ant-user@jakarta.apache.org
Subject: Passing fileset to child ant project error

I am trying to pass a fileset reference id to another ant file using the
following:
	<fileset id="globals" dir="/data/test/local/lib/">
		<include name="jakarta-oro-2.0.1.jar"/>
		<include name="xalan.jar"/>
		<include name="jaxp.jar"/>
		<include name="jgl3.1.0.jar"/>
		<include name="servlet.jar"/>
		<include name="jdbc.jar"/>
		<include name="ifxjdbc.jar"/>
		<include name="xerces.jar"/>
		<include name="NetComponents.jar"/>
		<include name="cos.jar"/>
		<include name="junit.jar"/>
		<include name="log4j-1.2.jar"/>
		<include name="commons-logging.jar"/>
	</fileset>
	<ant antfile="lib.xml" target="java.compile" inheritall="true">
		<property name="project.dir" value="${root.dir}/core"/>
		<property name="javac.includes"
value="com/ignitemedia/core/sql/Tracked*.java"/>
		<property name="globallibs" refid="globals"/>
	</ant>

I continually receive the error "Reference globals not found" at the line
"<property name="globallibs" refid="globals"/>". Is there a way I can pass a
fileset to another ant file?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
David Adams
Ignite Sports (www.ignitesports.com)
Voice: 773.293.4300
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



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