ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wascally Wabbit <wascallywab...@earthling.net>
Subject Re: multiple switch case
Date Thu, 20 May 2010 23:14:22 GMT
You can try the <domatch> task in the AntXtras antlib.

<domatch value="${value}">
   <like value="a|b">
      <echo message="a or b"/>
   </like>
   <like value="c">
     <echo message="c"/>
   </like>
   <otherwise>
     <echo message="NOT a, b, or c"/>
   </otherwise>
</domatch>

URL: http://antxtras.sf.net


Marco Gutsche wrote:
> Hello,
> 
> it is possible to use multiple case in a switch command, for example:
> 
> switch value:
>   case a:
>   case b:
>     echo "a or b"
>   case c:
>     echo "c"
> 
> Thank a lot.
> 
> Regards
> Marco
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 


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


Mime
View raw message