Perfect.  Thanks!

On 5/3/06, Robert Clark <[EMAIL PROTECTED]> wrote:

On Wednesday May 3, 2006 15:31, "Trent Ohannessian" <[EMAIL PROTECTED]>
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.

Reply via email to