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: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to