Hello, To wait for WebLogic (or other process to start), you could write a task that added itself as a BuildListener watching the output for some known text. If I recall correctly, someone wrote something like this a few months back.
After looking through the archives for and-dev and ant-user, I found this posting http://marc.theaimsgroup.com/?l=ant-user&m=98080266224597&w=2 on a <waitforlogevent> task which appears to do exactly the above. -Bill Garrick Olson wrote: > > I am currently doing something like: > > <parallel> > <wlstart ... /> > <sequential> > <sleep seconds="360"/> > <junit ... /> > <wlstop .... /> > </sequential> > </parallel> > > The problem is that Weblogic takes a very unpredictable amount of time to > start due to JSP pre-compilation, etc. If by chance the server has not > properly initialized in the specified amount of time, the wlstop will happen > too early and the build will hang indefinitely. :( > > I am looking for an alternative task that would look more like: > > <parallel> > <wlstart ... /> > <sequential> > <pingserverportuntilitresponds url="http://localhost:7001" > timeout="1hr" /> > <junit ... /> > <wlstop .... /> > </sequential> > </parallel> > > I seems like it would not be hard to write such a task, but if someone > already has one... :)
