ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@octo.fr>
Subject Re: <available> problem
Date Mon, 19 Mar 2001 18:40:32 GMT

----- Original Message -----
From: "Glenn McAllister" <glenn@somanetworks.com>
To: <ant-dev@jakarta.apache.org>
Sent: Monday, March 19, 2001 6:32 PM
Subject: Re: <available> problem


> Vincent Massol wrote:
>
> > The result is that the "atarget" target gets executed. I would have
> > preferred it *not* to be executed as the servlet jar does not exist (the
> > value is ""). Is that a normal behaviour ? If so, can it be changed or
is
> > there a good reason for it ?
>
> The if attribute doesn't check the value of the property, it simply checks
if
> it exists.  Since you have assigned an empty string to the property, it
exists.
>

Yes, you're right for the "if" attribute. I was more concerned about the
<available> task. It shouldn't define the property if the file cannot be
found, right ? Or am I missing something ...

> Glenn
>
>
thanks
Vincent


Mime
View raw message