ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: getting the value of the Target
Date Thu, 26 Apr 2001 06:08:45 GMT
Christopher Berry <> wrote:

> I would like to know how to get the value of the incoming
> target. (i.e for "ant clean", I want "clean").

There is no property for this, no.

> What I am trying to do is execute a target conditionally based on
> the incoming target name. So that I can skip some intermediate step
> in a build.  Is there a workaround??

Sounds like something would be wrong with you dependencies.  If you
can skip a target "A" when running the "clean" target, "A" shouldn't
be in the dependency chain for "clean".


View raw message