ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jose Alberto Fernandez <JFernan...@viquity.com>
Subject [PATCH] New <case> task
Date Tue, 10 Oct 2000 21:03:26 GMT
Ok, Here is the <case> taks I proposed in my previous e-mail.
It provides a declarative way to set properties based on the value of
others:
 
<case property="prop.name" >
  <when value="value1" property="prop.name.value1" />
  <when value="value2" property="prop.name.value2" />
  <else property="prop.name.noneoftheabove" value="none" />
</case>

<else> is optional and its value attribute is optional and defaults to
"true".

 
Hope this can be added to 1.2 as to have all the basic functionality right
there in core.
 
Jose Alberto

Mime
View raw message