Hi
This condition I use checks for failure and success ie 400 and 200 response
status.
<condition property="check.this.setting">
<not>
<http url="${url}"/>
</not>
</condition>
<fail if="check.this.setting">
Failed to start the Enterprise Application. Please check the [exec] messages
or the server logs.</fail>
Thanks
Alan
-----Original Message-----
From: Steve Loughran [mailto:[EMAIL PROTECTED]
Sent: Friday, March 24, 2006 1:34 AM
To: Ant Users List
Subject: Re: Ant task to handle HTTPResponse status code (HELP!!!)
Ivan "Rambius" Ivanov wrote:
> Hello,
>
> I suppose you will need a fully fledged http client
> like Jakarta Commons HttpClient[1]. Sending any http
> request using its API is pretty easy. Then you can
> encapsulated the request and the status handling in a
> task/scriptdef.
>
> I noticed once a conversation in ant-user or ant-dev
> about http tasks, that will allow the users to send
> any http method to a server. They have been added also
> in proposals directory in the source repository. I do
> not know, however, their status - if they will make
> their way in ant 1.7.
Checking the tasks in is on my todo list; it would be as an antlib that
would not be the core distro, just a library to go on the side
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]