ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: multiple switch case
Date Tue, 18 May 2010 08:33:38 GMT
It seems that this is not possible.
You could rewrite your scenario with <if>

Jan


        <ac:if>
            <or>
                <equals arg1="${value}" arg2="foo"/>
                <equals arg1="${value}" arg2="bar"/>
            </or>
            <then>
                <echo>foo</echo>
                <echo>or bar</echo>
            </then>
        </ac:if> 

>-----Urspr√ľngliche Nachricht-----
>Von: Marco Gutsche [mailto:marco.gutsche@kobil.com] 
>Gesendet: Dienstag, 18. Mai 2010 08:11
>An: user@ant.apache.org
>Betreff: Re: multiple switch case
>
>Hello,
>
>Thanks, but I found this link and the example only shows one case and 
>I'm not able to modify it to use multiple case for one following 
>instruction (like my example).
>
>Regards
>Marco
>
>Am 17.05.2010 20:56, schrieb reno:
>> Marco,
>>
>> a bit of "googling" will give you that link:
>> http://ant-contrib.sourceforge.net/tasks/tasks/switch.html
>>
>> hope this help
>>
>> S.
>>> 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
>>
>>
>
>
>---------------------------------------------------------------------
>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