ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <stev...@iseran.com>
Subject Re: "if" task
Date Tue, 30 Apr 2002 23:49:50 GMT

----- Original Message -----
From: "Martin Jericho" <martin.j@jabcreative.com>
To: <ant-user@jakarta.apache.org>
Sent: Tuesday, April 30, 2002 4:29 PM
Subject: "if" task


> I have a very pragmatic solution to this problem.  Include a reference to
> the contrib stuff in both the resources and FAQ sections of the ANT
> documentation.  Someone has already mentioned that it is in the FAQ of the
> website, but I didn't check that because I had already checked the FAQ
that
> came with the download.  If it is put in a prominent place where newbies
can
> easily find it, it will no doubt save them a lot of time, and would have
> saved me a lot of time.
>
> Now I have a question for you Steve:
> You said you don't have much need for conditionality apart from <fail>.
> This is exactly what I want to use it for, but there is no conditionality
> built into fail either.  So how do you do it?

oh yes there is, at least in the 1.5 codebase:

    <fail if="test.failed">
      Unit tests failed.  Check log or reports for details
    </fail>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message