ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Scope of a property
Date Wed, 28 Nov 2001 11:29:04 GMT
On Wed, 28 Nov 2001, Holger Danske <holgerdanskedk@yahoo.de> wrote:

> Many targets depends on this check target. But it is
> only once necessary to run the check target.

If a target appears more than once in the dependency graph, Ant will
still only execute it once - so it should already do what you want, or
I'm misunderstanding what you want.

>   <target name="check" unless="is.checked">
>     <property name="is.checked"/>
>     ....

is this literally taken from your buildfile?  What do you expect that
property task to do without either a value, location or ref attribute?

> The lifetime of the property is.checked is from the beginning of the
> target till it end.

No - there must be something wrong in what you are doing.

How do you call that check target?

Stefan

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message