ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Lochart" <dloch...@cablespeed.com>
Subject inheritrefs="true" is not working
Date Mon, 24 Jun 2002 02:57:44 GMT


-----Original Message-----
From: Doug Lochart [mailto:dlochart@cablespeed.com]
Sent: Sunday, June 23, 2002 10:53 PM
To: Ant-User-Help
Subject: inheritrefs="true" is not working


Okay, I assume its something I am overlooking as I did not find a single
post with my problem which generally would mean its me.  I have ant1.5Beta2
and I have double checked the version in my path.

here are snippets of my 2 build files

build file #1

  <path id="build.classpath.cape">
    <pathelement location="${classes.dir}"/>
    <pathelement location="${common.utils.jar}"/>
    <pathelement location="${rmi.utils.jar}"/>
    <pathelement location="${logger.jar}"/>
    <pathelement location="${jmx.jar}"/>
    <pathelement location="${xerces.jar}"/>
    <pathelement location="${methods.jar}"/>
    <pathelement location="${bootstrap.jar}"/>
  </path>

<target name="common:build-main">
    <ant inheritrefs="true"
  	   antfile="${common.build.home}/scripts/common-build.xml"
         target="build">
      <reference refid="build.classpath"/>
    </ant>
  </target>

build file #2

  <target name="build" depends="init">
    <echo> "Beginning javac compile for ${product}" </echo>
    <javac classpathref="build.classpath"
    		srcdir="${source.dir}"
           	destdir="${build.destination}"
   	 	includes="${build.includes}"
    		excludes="${build.excludes}"
           	debug="${build.debug}"
           	deprecation="${build.deprecation}"
           	optimize="${build.optimize}"/>
   </target>

I have also tried using the <classpath refid="build.classpath"> element
within the <javac/> tag.

I have tried many combinations and I cant seem to get anything to work.

I keep getting an error saying - Reference build.classpath not found

Am I missing something here?  What am I overlooking?

Many thanks in advance.

doug


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