ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael_...@NAI.com
Subject RE: if/else structure (This time for sure! :)
Date Wed, 08 May 2002 20:49:03 GMT
thanks diane!

mike

-----Original Message-----
From: Diane Holt [mailto:holtdl@yahoo.com]
Sent: Wednesday, May 08, 2002 12:56 PM
To: Ant Users List
Subject: RE: if/else structure (This time for sure! :)


O-kay (and after this, I'm taking a nap! :) -- it's actually really easy,
and there's no need an additional task, since you can get to the version
number afterall (helps when you remember <property> has a 'resource'
attribute [duh]).

  <target name="whatever" if="is1.5Beta1" depends="chkVersion">
    ...
  </target>

  <target name="chkVersion">
    <property resource="org/apache/tools/ant/version.txt"/>
    <condition property="is1.5Beta1">
      <equals arg1="${VERSION}" arg2="1.5Beta1"/>
    </condition>
  </target>

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

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

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


Mime
View raw message