ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trent Ohannessian" <toh...@gmail.com>
Subject Re: Am I completely misunderstanding the fail/unless task?
Date Wed, 03 May 2006 19:42:57 GMT
Perfect.  Thanks!


On 5/3/06, Robert Clark <robert.clark@quest.com> wrote:
>
> On Wednesday May 3, 2006 15:31, "Trent Ohannessian" <tohann@gmail.com>
> wrote:
>
> >     <fail unless="${env}" >
> >
>
> > BUILD FAILED
> > D:\Open Source Projects\Canoo Web Test\my_tests\webtest.xml:3:
> > Missing environment parameter.
> >
> >         Here is env: dev
> >
> >         Usage:
> >                 webtest -buildfile webtest.xml -Denv=[dev | qa |
> > stg | prod]
> >
> > Total time: 0 seconds
> >
> > How can this be failing when when env is printed out in the failure
> > message?
>
> The "unless" attribute of the <fail/> task takes the name of a
> property, not its value. In this case you need to re-write the test
> as:
>
> <fail unless="env">
>    ....
> </fail>
>
> - Rob
>
>


--
Learn from the mistakes of others. You can't live long enough to make them
all yourself.

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