ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Buonassisi, Vincent" <vbuon...@sprintspectrum.com>
Subject passing refid to sub-project file
Date Wed, 14 Aug 2002 20:45:08 GMT
Hi,

I am trying to pass a 'path' to a sub-project that i call using the task
'ant'.  I set 'inheritrefs' to true.  but, it doesn't work.  'path' contains
my classpath that built up and I would like to pass it to the sub-projects.
Here is the relevant snippets of code:

build.xml:

<project name="ifm" default="all" basedir=".">

	<property environment="env"/>
	<property name="JAVA_HOME" value="${env.JAVA_HOME}"/>
	<property name="BEA_DIR" value="/tools/bea/wlserver6.1/lib"/>
	<property name="VBROKER" value="/tools/visibroker/lib"/>
  	      :

	<path id="classpath">
 		<pathelement path="${java.class.path}"/>
  		<pathelement location="."/>
  		<pathelement location="$BEA_DIR/weblogic.jar"/>
       			  :
	</path>


	<target name="snmp" >
    		<ant dir="." antfile="build_vjb.xml" inheritrefs="true"/>
	</target>
</project>


build_vjb.xml:

<project name=".....

	:

 	<!-- Compile ejb classes into the build directory (jar preparation)
-->
  	<target name="compile_ejb" depends="init">
    		<javac srcdir="${src}" destdir="${build}" 
        			includes="com/erc/ifm/snmp/**"
	
excludes="com/erc/ifm/snmp/Client.java,com/erc/ifm/snmp/startup/**">
        			<classpath refid="classpath"/>
    		</javac>
  	</target>

		:
</project>

Can someone point out what I am doing wrong?

thanks,

vince







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