You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Morten Mortensen <mo...@tietoenator.com> on 2003/06/22 16:51:02 UTC
Q: Getting name of current target
Is it possible to read the name of the current target?
This has relevans when "linking" projects and having targets delegating the
call through the "ant" task; I would like to avoid having the same name
repeated within targets.
The API will do for me. It must be simple to do with the API?
Med venlig hilsen
Morten Sabroe Mortensen
mailto:Morten.Mortensen@tietoenator.com
http://www.tietoenator.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Q: Getting name of current target
Posted by peter reilly <pe...@corvil.com>.
Task#getOwingTarget() should do the trick.
Peter
On Sun, 2003-06-22 at 15:51, Morten Mortensen wrote:
> Is it possible to read the name of the current target?
>
> This has relevans when "linking" projects and having targets delegating the
> call through the "ant" task; I would like to avoid having the same name
> repeated within targets.
>
> The API will do for me. It must be simple to do with the API?
>
> Med venlig hilsen
> Morten Sabroe Mortensen
> mailto:Morten.Mortensen@tietoenator.com
> http://www.tietoenator.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org