ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From FergusODala...@netscape.net (Fergus O'Dalaigh)
Subject Conditional Problem using if
Date Thu, 08 May 2003 13:01:38 GMT
Greetings fellow scripters, I've a problem getting a target with an 'if' attribute to execute.

The property "i_am_set" is being set, yet the target "getLatestVersion" still doesn't execute.

Here's the relevant part of the script:

  <target name="getFromSS" >
      <condition property="home-env" value="i_am_set">
        <equals arg1="${exec-environment}" arg2="home" />
      </condition>
      <antcall target="getLatestVersion" />
  </target>
  <target name="getLatestVersion" if="i_am_set" >
      <vssget localPath="${source}"
          recursive="true" 
          login="${ss-login},${ss-password}"
          serverPath="${ss-server}"
          vsspath="/P666/COMMON/"
          ssdir="${ss-dir}"
       />
       </target>

I'm sure I'm doing something wrong, the quetion is what?

__________________________________________________________________
Try AOL and get 1045 hours FREE for 45 days!
http://free.aol.com/tryaolfree/index.adp?375380

Get AOL Instant Messenger 5.1 free of charge.  Download Now!
http://aim.aol.com/aimnew/Aim/register.adp?promo=380455

Mime
View raw message