Re: Ant: How to parameterize similar targets?

From: Stefan Bodewig (stefan.bodewig_at_freenet.de)
Date: 11/27/03


Date: 27 Nov 2003 01:17:12 -0800

ronaldf@eml.cc (Ronald Fischer) wrote in message news:<219750c.0311260645.46d2233a@posting.google.com>...
> I'm faced with a bunch of build.xml files in several directories,
> all of them define a certain target (say: T). The definition of
> this target in all these build files are structurally nearly the same.
> Their implementations differ only in small details, say, a different
> value for some filename etc. During one build, all these targets are
> executed by recursive calls of Ant.

Use Ant 1.6beta and <import>.

For some doc examples that go beyond the current documentation inside
the beta distribution see
<http://nagoya.apache.org/wiki/apachewiki.cgi?NewAntFeaturesInDetail/Import>
and
<http://marc.theaimsgroup.com/?l=ant-dev&m=106934667616938&w=2>

Stefan



Relevant Pages

  • Re: Ant Problem
    ... ok, also wenn ich Dich richtig verstanden habe Ant sucht nach "init" und auf Grund dessen baute sich eigne Struktur, ... Gibst du Ant beim Start den Namen eines Target als Parameter mit, dann sucht Ant dieses Target. ... Warum startest du den Tomcat aus dem 'clean' target heraus?!? ...
    (de.comp.lang.java)
  • Re: Games for March
    ... You have to jab the fire button just as they fly over the target. ... when you enter the nest. ... gu;ped down by an exiting ant is very tricky, aside form that you have to ...
    (comp.sys.amiga.games)
  • Re: Ant Problem
    ... Gibst du Ant beim Start den Namen eines Target als Parameter mit, ... Anweisung abarbeiten ohne es auf die anderen ... und die jar Archive im Tomcat Verzeichnis zur "holen". ...
    (de.comp.lang.java)
  • Re: Ant Problem
    ... compile, dann jar, dann clean, ohne Erfolg, danach habe ich versucht den target "build-clean" ohne ... ant task calling a target that depends on its parent target 'jar'. ...
    (de.comp.lang.java)
  • Re: Confused about ant api
    ... > I'm a bit confused about using the ant api. ... and the target that it must operate. ... > Very confusing. ...
    (comp.lang.java.programmer)