ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Scope of a property
Date Wed, 28 Nov 2001 11:29:04 GMT
On Wed, 28 Nov 2001, Holger Danske <> 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?


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message