ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <jakarta-...@ehatchersolutions.com>
Subject Re: Can you get name of target to be run?
Date Wed, 05 Feb 2003 05:47:47 GMT
No.  And this has been a hotly debated topic, in fact.

Keep in mind that Ant can be run this way also:

	ant target1 target2 target3

That probably doesn't factor into why its a debatable topic, but does 
add some food for thought on it.

You could do something like this though:

	ant -Dtarget=target1

And in the default target do an <antcall> to ${target}

	Erik


On Tuesday, February 4, 2003, at 06:07  PM, David Clements wrote:
> Can you get the name of the target that is going to be run upon entry 
> into the build file?  I want to set a
> property based on what target is going to be run.
>
> Dave
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ant-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: ant-user-help@jakarta.apache.org
>
>


Mime
View raw message