ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikael Petterson \(KI/EAB\)" <mikael.petter...@ericsson.com>
Subject Problem with classpath in javac task
Date Fri, 03 Dec 2004 12:03:15 GMT
Hi,

I am using ant 1.6.2

I have a common.xml with a compile target:

<target name="compile" depends="init" description="compile product src code">
        <depend srcdir="${src.dir}" destdir="${classes.dir}" cache="depcache"
        closure="yes"/>
        <!-- Both srcdir and destdir should be package roots. -->
         <javac debug="true" deprecation="true" destdir="${classes.dir}"
         srcdir="${src.dir}">
         <classpath refid="common.classpath"/>
        </javac>
   </target>


In my proj1.xml I have the following:

<import file="/vobs/rbs/sw/rbssw1/boam_subsys/boam_swb/boam_bldu/ant_build/common.xml"/>
 
  <target name="setup">
<!-- Adding boam to classpath -->
  <path id="additional.classpath">
    <pathelement location="${BROS.FWK.DIST.DIR}/${BROS.FWK.JAR}"/>
  </path>

  <!-- Set common classpath to override def. in common.xml -->
  <path id="common.classpath">
        <pathelement location="${CELLO.DIR}/${ASMS.JAR}"/>
        <path refid="additional.classpath"/>

  </path>
</target>


Do anyone have an idea why not "additional.classpath" is added to "common.classpath"?


BR

//Mikael

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message