ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject RE: if/else structure (This time for sure! :)
Date Wed, 08 May 2002 19:56:21 GMT
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>


Mime
View raw message