ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Goktepe <andrewgokt...@gmail.com>
Subject Re: "unless" doesn't appear to work for me?
Date Wed, 14 Sep 2005 13:34:50 GMT
Please send the section of the script where you set the property.

 On 9/14/05, Greg Akins <gakins@insomnia-consulting.org> wrote: 
> 
> I have two targets. One has a "if", the other has an "unless" that both
> evaluate the same property.
> 
> I conditionally set the property based on the length of a file.
> 
> when I echo the property before the target, if it's set, I get "true" If 
> it's
> not set, I get ${file.exists} (which I assume mean the property isn't set.
> 
> However, in either case, the target with unless="file.exists" does not run 
> and
> teh target with if="file.exists" does run.
> 
> Any ideas what I'm doing wrong? (Ant 1.6.5 on Java 1.4.2 on Linux)
> 
> -greg
> 
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
> 
> ---------------------------------------------------------------------
> 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