On Tue, 5 Jun 2007, Vladimir Egorov <[EMAIL PROTECTED]> wrote: > The above example may look like this. > > <parallel> > <exec id='myserver' > executable='ServerUnderTest.exe' > ... > <sequential> > <sleep seconds="30"/> > <junit ... > > <kill id='myserver'/> > </sequential> > </parallel> > > Unlike the WL example, we are not using a proprietary stop > mechanism. The <kill> task is a generic task that calls > Process.destroy(), and works for both Exec and Java processes. > > Is there anything in the Ant World on this?
No, I don't think there is, even though it shouldn't be too difficult to implement. > P.S. Another area is full support for 'spawn' attribute. Right now: > > $ ant -version > Apache Ant version 1.6.5 compiled on June 2 2005 > $ cat t.xml > <project> > <exec executable="ls" spawn="true" timeout="1000"/> > </project> > $ ant -f t.xml > Buildfile: t.xml > spawn does not allow attributes related to input, output, error, > result > spawn also does not allow timeout > finally, spawn is not compatible with a nested I/O <redirector> This hasn't changed in 1.7.0 either. When spawn is true, Ant just starts the Process and doesn't care for it anymore. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
