On Tue, 10 Jul 2001, Klara Ward <[EMAIL PROTECTED]> 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}" .... />
</target>

Stefan

Reply via email to