ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Conor MacNeill <co...@cortexebusiness.com.au>
Subject Setting multiple properties in one condition
Date Fri, 13 Dec 2002 14:57:29 GMT
I've done a quick change to allow condition to set multiple poperties. This 
is an example of how it can be used

   <target name="platform_props">
     <condition>
       <os family="unix"/>
       <propertyset>
         <property name="target" value="bash"/>
         <property name="extension" value="sh"/>
         <property name="shell" value="bash"/>
       </propertyset>
     </condition>
     <condition>
       <and>
         <os family="windows"/>
         <not>
           <os family="win9x"/>
         </not>
       </and>
       <propertyset>
         <property name="target" value="win2k"/>
         <property name="extension" value="bat"/>
         <property name="shell" value="cmd.exe"/>
       </propertyset>
     </condition>
   </target>

Worth committing? Thoughts?

Conor


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


Mime
View raw message