ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: the ant task and targets
Date Wed, 11 Jul 2001 05:58:25 GMT
On Tue, 10 Jul 2001, Klara Ward <> wrote:

> If I want to use one buildfile to checkout the real buildfile and
> then run ant with that one, can I use the target specified running
> ant with the first buildfile when I run the ant task with the
> checkedout file?

Not that easy, no.  There is no property holding the name of the
target (the names of the targets, you can specify more than one) given
on the command line.

The easiest solution would probably be something like

ant -Drealtarget=.... checkout-and-run

<target name="checkout-and-run">
  <check-out-build-file />
  <ant target="${realtarget}" .... />


View raw message