ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Primoz.Pris...@marand.si
Subject Re: Condition Task Question
Date Fri, 18 Oct 2002 05:10:24 GMT

Actually every ant <target> can have "if" or "unless" attribute. That means
that target will be executed only if property is (or is not) set.

You can use it like this:

<target .... if="blabla">
...

Primoz.



                                                                                         
                                                     
                    "Justo                                                               
                                                     
                    Casablanca"           To:     "Ant Users List" <ant-user@jakarta.apache.org>
                                              
                    <jcasablanca@c        cc:                                         
                                                        
                    fl.rr.com>            Subject:     Condition Task Question        
                                                        
                                                                                         
                                                     
                    18.10.2002                                                           
                                                     
                    06:14                                                                
                                                     
                    Please respond                                                       
                                                     
                    to "Ant Users                                                        
                                                     
                    List"                                                                
                                                     
                                                                                         
                                                     
                                                                                         
                                                     




Hi all, I really like having a Condition task and all, but all it seems to
allow you is
the setting of a property to "true" if the condition is met. How do you
actually _do_
something based on the true/false value of the property ? Thx in advance
!!!




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


Mime
View raw message