ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barrington-Hughes, Alan" <>
Subject RE: conditional??????
Date Thu, 11 May 2006 14:52:21 GMT
You can use something like this

 <target name="determineOs">
    <condition property="os.isUnix">
      <os family="unix"/>
    <condition property="os.isSolaris">
      <os name="SunOS"/>
    <condition property="os.isTru64">
      <os name="OSF1"/>
    <condition property="os.isWindows">
      <os family="windows"/>

  <target name="initSolaris"
          description="Load properties for Solaris."
    <loadproperties srcFile="${localRoot}/conf/"/>
    <property name="userName" value="${env.USER}"/>

Good luck
-----Original Message-----
From: Alberto Marquÿffffe9s [] 
Sent: Thursday, May 11, 2006 10:48 AM
Subject: conditional??????

I need a function or tag ant that serves like condition.

If a property has value true of doing this if not to do this. 

Something exists thus: 

<property valor=True/>

<if valor=true>

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.

***Note:The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader of
this message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited.  If you have
received this communication in error, please notify the Sender
immediately by replying to the message and deleting it from your
computer.  Thank you.  Premier Inc.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message