You can use the system property os.name i.e.

   <property name="is.${os.name}" value="true"/>

   <target name="Sun" if="is.SunOS">
   </target>

> -----Original Message-----
> From: Mark Jaffe [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 09, 2001 3:14 PM
> To: [EMAIL PROTECTED]
> Subject: Cross-platform properties?
> 
> 
> I am working with a project that needs to work on both unix 
> and NT. IUs
> there an easy way to set properties that will know their 
> platform? I need
> something like
> 
> <property name="home" value="/home/user" if-os="unix"/>
> <property name="home" value="c:\winnt\profiles\user" if-os="windows"/>
> 

Reply via email to