It sounds like it should be possible. The idea with waitfor is that
there's a set of sub-elements that define the conditions you are waiting
for. Currently these are:
<http> Wait for a URL to become available
<socket> Wait for a server to listen on a port
<file> Wait for a file to exist
I'll have a look at adding an additional <output> condition for
detecting certain text in a text stream based on the reference you sent.
Perhaps something like this:
<waitfor>
<output text="WebLogic Server started"/>
</waitfor>
I'll have a proper think about it later....
Regards
Denis
> -----Original Message-----
> From: Bill Burton [mailto:[EMAIL PROTECTED]
> Sent: 28 November 2001 03:57
> To: Ant Developers List
> Subject: Re: [SUBMIT] Waitfor task
>
>
> Hello,
>
> A <waitforlogevent> task was sumbitted a while ago but was
> never committed. It attaches itself as a Listener and
> watches for some specfied text to appear in a file. You can
> read about it at
> http://marc.theaimsgroup.com/?l=ant-user&m=98080266224597&w=2.
>
> Maybe that task could be merged into this one?
>
> -Bill
>
> Denis Hennessy wrote:
> >
> > Hi all,
> >
> > I don't have write access to the cvs tree. Could one of the
> committers
> > please consider the attached task for inclusion. Thanks.
> >
> > The intent of this task is to synchronize execution of multiple
> > processes and/or servers. It blocks until a series of conditions
> > become true (they typically become true by an external process
> > starting successfully or completing some task). This is
> particularly
> > useful where the other process is started by ant itself, using the
> > <parallel> task. A common pattern is:
> >
> > <target name="test" depends="deploy, create-test-env">
> > <parallel>
> > <wlrun beahome="${weblogic.dir}"
> > home="${weblogic.dir}/wlserver6.1"
> > domain="mydomain"
> > classpath="${weblogic.classes}"
> > password="weblogic"/>
> > <sequential>
> > <waitfor maxwait="5m" checkevery="200ms">
> > <http url="http://localhost:7001/index.html"/>
> > </waitfor>
> > <junit fork="yes" printsummary="yes"
> haltonfailure="no">
> > <!-- junit config -->
> > </junit>
> > <wlstop beahome="${weblogic.dir}"
> > classpath="${weblogic.classes}"
> > user="system"
> > url="t3://localhost:7001"
> > password="weblogic"/>
> > </sequential>
> > </parallel>
> > </target>
> >
> > Besides waiting for web requests to succeed, you can also wait for
> > other conditions to exist such as a file being created or a server
> > starting to listen on a port.
> >
> > Attached are the source and documentation files for the new
> task, and
> > the patches to defaults.properties and coretasklist.html.
> >
> > Regards,
> > Denis
>
> --
> To unsubscribe, e-mail:
> <mailto:ant-dev-> [EMAIL PROTECTED]>
> For
> additional commands,
> e-mail: <mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>