ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David McTavish <dmctav...@SANDVINE.com>
Subject RE: if then else with ant
Date Mon, 17 Feb 2003 20:41:51 GMT
But in this case, I think the <condition> solution is the preferred
methodology. (as much as I love the antelope tasks, I would recommend
resorting to ant default tasks as much as possible).

d.


-----Original Message-----
From: Dale Anson [mailto:danson@germane-software.com]
Sent: Monday, February 17, 2003 3:39 PM
To: Ant Users List
Subject: Re: if then else with ant


You can also use the "if" task that comes with the Antelope distribution:

<if name="a" value="2">
    <echo>Message1</echo>
    <else>
        <echo>Message2</echo>
    </else>
</if>

Antelope home page is http://antelope.sourceforge.net.
"if" task documentation is at 
http://antelope.sourceforge.net/manual/bk03ch05.html.

Dale Anson
danson@germane-software.com


Pellier, Marc wrote:

>How can I do 
>
>if (a=2)
>	print("Message1");
>else
>	print("Message2");
>
>
>with ANT
>
>***************************************************************************
*
>Disclaimer: 
>This electronic transmission and any files attached to it are strictly 
>confidential and intended solely for the addressee. If you are not 
>the intended addressee, you must not disclose, copy or take any
>action in reliance of this transmission. If you have received this 
>transmission in error, please notify the sender by return and delete
>the transmission.  Although the sender endeavors to maintain a
>computer virus free network, the sender does not warrant that this
>transmission is virus-free and will not be liable for any damages 
>resulting from any virus transmitted. 
>Thank You.
>***************************************************************************
*
>
>
>---------------------------------------------------------------------
>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