ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: Re[2]: Best practice for numerous javac calls?
Date Mon, 02 Dec 2002 22:13:23 GMT
Have you tried a recent build from CVS HEAD? Stefan has probably fixed
that!?!? As a work around for Ant 1.5.1, I use a property to avoid
re-taskdef'ing in the sub-build:

--- master.xml ---
  <target name="init" depends="-buildmagic">
    ...
  </target>

  <target name="-buildmagic" unless="-buildmagic-defined">
    ...
    <property name="-buildmagic-defined" value="true" />
  </target>

  <target name="clean" depends="buildfiles, buildpath"
          description="Deletes all the modules' compiled classes">
    <subant buildpathref="buildpath">
      <property name="-buildmagic-defined" value="true" />
    </subant>
  </target>

--- subbuild.xml ---
  <target name="init" depends="-buildmagic">
    ...
  </target>

  <target name="-buildmagic" unless="-buildmagic-defined">
    ...
    <property name="-buildmagic-defined" value="true" />
  </target>


<subant> is nothing more than <foreach> and <ant> joined at the hip.
This technique got me rid of the re-reference warnings. --DD

-----Original Message-----
From: Jacob Kjome [mailto:hoju@visi.com] 
Sent: Monday, December 02, 2002 4:06 PM
To: Ant Users List
Subject: Re[2]: Best practice for numerous javac calls?

[DD] <snip/>

Any solutions to that?

Jake

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