ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@octo.com>
Subject Re: WAIT task
Date Mon, 23 Apr 2001 15:04:17 GMT
I solved this problem by writing a custom task (for Cactus, a server side
testing framework) that continuously polls a URL until it succeeds. When it
succeeds it means that your app is running. If you're interested, the source
code is available as part of the Cactus source code, you can download it at
: http://jakarta.apache.org/commons/cactus/downloads.html

I wrote a task that does this :
- start the server
- wait until it is effectively started by polling a specific URL
- run some tests
- stop the server
- wait until it is effectively stopped

I prefer doing this instead of a timer as it is more deterministic !

Hope it helps.
Vincent Massol

----- Original Message -----
From: "Jim Downing" <jimdowning@pobox.com>
To: <ant-user@jakarta.apache.org>
Sent: Monday, April 23, 2001 4:10 PM
Subject: WAIT task


> Hi,
> I want to use ant to deploy my application to JBoss, and then initialize
and
> test the application. The problem is that JBoss uses a hot deploy method
> whereby you just copy the .ear file into a specified directory and it
> deploys. Deployment only takes a couple of seconds, but my init and test
> applications will already be running by this point.  AFAIK there is no way
> of getting a success return code from JBoss. I know it's a cludge, but is
> there a built-in task in Ant that would make Ant wait for a few seconds?
>
> jim
>
>


Mime
View raw message