ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scot P. Floess" <flo...@mindspring.com>
Subject Re: AW: How to set properties when property is set
Date Tue, 23 May 2006 11:13:52 GMT
The only problem is he stated setting multiple properties...not a single 
one....

Of course, I just chuckled to myself as I had forgotten the else 
attribute on condition...

Jan.Materne@rzf.fin-nrw.de wrote:
> <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:mikael.petterson@ericsson.com] 
>> 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: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>   

-- 
Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate  http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message