ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ZHAO,YUN (HP-China,ex2)" <>
Subject why does an ant task not work!
Date Sun, 27 Oct 2002 11:11:35 GMT
Running "java -buildfile bbuild.xml" command will
be ok!
Running "java -buildfile abuild.xml" command will
fail if the the previous command hasn't been ran!
--project a's abuild.xml
<project name="a" default="core" basedir="."/>
     <target name="init">
        <property name="a.src" ../>
        <property name="" ../>
     <target name="components" depends="init">
         <!-- the following task won't work -->
         <ant dir="${b.home}/src" target="core"/>
     <target name="compile" depends="components">
         <copy ...> 
            <!-- copy ${b.home}/build/classes directory's *.class to the
${} directory--> 
         <javac src="${a.src}" dest="${}" classpath="${}"/>
      <target name="core" depends="compile">
--project b's bbuild.xml
<project name="b" default="core" basedir=".">
     <target name="init">
         <property name="b.classpath"
     <target name="compile" depends="init">
         <!-- if the core target is called from "abuild.xml"'s components
              the ant will say that it can't find the classes which is
located in the "castor.jar" jar file -->
         <javac classpath=${b.classpath} dest="${b.home}/build/classes"
    <target name="core" depends="compile">

View raw message