> From: Steve Loughran [mailto:[EMAIL PROTECTED]
> 
> Which is precisely why every policy has an if attribute that is
boolean
> 
> <force if="${force.update}"/>
> <schedule hours="3" />

Hmmm, the old if/unless debate...

And we keep on littering the Ant code with duplicated if/unless
attributes and the logic/doc associated to them instead of doing it once
and for all in the framework. It would be trivial to ignore in the
UnknownElement of tasks/types all XML elements who's if/unless
attributes makes them irrelevant, since everything done's just in time
now, at runtime, when the values of if/unless can be evaluated. You get
a simple and powerful conditional everywhere. It's akin to <xsl:if>
where the build file is also it's own stytesheet, and almost like
#ifdef. Ah well, it's a lost cause... --DD

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to