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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to