ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: Conditional Problem using if
Date Thu, 08 May 2003 13:04:29 GMT
You don┬┤t set the property 'i_am_set'.
The name of your property is 'home-env'.
So try

  <target name="getLatestVersion" if="home-env" >
      <vssget localPath="${source}"
          ...


Jan


> -----Urspr├╝ngliche Nachricht-----
> Von: FergusODalaigh@netscape.net [mailto:FergusODalaigh@netscape.net]
> Gesendet am: Donnerstag, 8. Mai 2003 15:02
> An: user@ant.apache.org
> Betreff: Conditional Problem using if
> 
> 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
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message