ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <>
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 name="chkVersion">
    <property resource="org/apache/tools/ant/version.txt"/>
    <condition property="is1.5Beta1">
      <equals arg1="${VERSION}" arg2="1.5Beta1"/>



Do You Yahoo!?
Yahoo! Health - your guide to health and wellness

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

View raw message