<condition property="propfile" value="present.properties" 
else="absent.properties">
    <available file="${gen.dir}"/>
</condition> 
<property file="${propfile}"/>


Jan

>-----Ursprüngliche Nachricht-----
>Von: Mikael Petterson (KI/EAB) [mailto:[EMAIL PROTECTED] 
>Gesendet: Dienstag, 23. Mai 2006 12:23
>An: Ant Users List
>Betreff: How to set properties when property is set
>
>Hi,
>
>I have a property that checks if a certain directory exists. 
>If that property, gen.dir.present,  is true then I need to set 
>a bunch of properties. If false I set them to other values. Is 
>there a Smooth way to do this.
>
> <property name="gen.dir"
>value="/vobs/rbs/sw/rbssw_boam/boam_subsys/boam_swb/boammao_swu
>/src/ifac
>e/gen"/>
> <available file="${gen.dir}" property="gen.dir.present"/>  
><echo message="New refactored structure for iface present:
>${gen.dir.present}"/>
>
>Cheers,
>
>//mikael
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to