ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Stockall <je...@cryptocard.com>
Subject Passing classpath to a sub-project with the ant task
Date Wed, 18 Jul 2001 15:15:55 GMT
I'm trying to get one Ant build file to call an Ant build file in a
subfolder. I can't seem to get the classpath passed to the subfolder.

This is the classpath definition in the top level file

<path id="classpath">
 <pathelement location="${shared}/lib/NetComponents.jar"/>
	<pathelement location="${shared}/lib/junit.jar"/>
	<pathelement location="${shared}/lib/jakarta-regexp-1.2.jar"/>
</path>


This is how I call the subfolders' build file

<target name="compile">
		<ant antfile="build.xml" dir="${ant.dir}" target="main"/>
</target>

The subfolder's build file is not under my control & is updated from cvs
so I can't make modifications

-- 
 Jesse Stockall                 |       Tel: 1+ 613.599.2441 ext. 243
 CRYPTOCard Corporation         |       Fax: 1+ 613.599.2442            
 Suite 304, 300 March Rd.       |       email: jesse@cryptocard.com
 Ottawa, ON, Canada K2K 2E2     |       web: www.cryptocard.com 
---------------------------------------------------------------------


Mime
View raw message