ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sunyj" <>
Subject Re: why does an ant task not work!
Date Mon, 28 Oct 2002 02:52:22 GMT
Hi, Zhao Yun:
Are abuild.xml and bbuild.xml in the same directory? 
why not use commandline: ant.bat batch file or shell?
Or send us more details about directory structure information.

Sun Yongjing
  ----- Original Message ----- 
  From: ZHAO,YUN (HP-China,ex2) 
  To: List, Ant Users (E-mail) 
  Sent: Sunday, October 27, 2002 7:11 PM
  Subject: why does an ant task not work!

  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" value="../lib/castor.jar:${java.class.path}"/>

       <target name="compile" depends="init">
           <!-- if the core target is called from "abuild.xml"'s components target, 
                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">


  To unsubscribe, e-mail:   <>
  For additional commands, e-mail: <>
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message