You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Robert Mark Bram <re...@optusnet.com.au> on 2004/05/15 17:28:08 UTC
Pause Task?
Hi All!
I have a batch file that I would like to convert to an and build file.
It has a number of tasks that must be initialised consecutively, but
initialisation takes an arbitrary length of time to complete. Therefore my
batch file waits for the user to press a button between each task before
launching the next one. It uses "pause" to do this.
Is there a portable way to do this with ANT. I realise there is "waitfor"
but this will not work - because each of the consecutive tasks still runs
after initialisation.
The job actually starts a series of four server apps up.. in order. The
user has to wait for each one to initialise (and there be up and running)
before initialising the next one.
I also realise I could just have the user type in four ant commands.. but
I would like have a way to launch all four with one Target and user
intervention.
Any ideas would be most appreciated!
Rob
:)
--
Robert Mark Bram
B.Comp.(Systems Development/Business Systems)
B.Net.Comp.(Hons)
Doctor of Philosophy Student
School of Network Computing
Faculty of Information Technology
Monash University
Peninsula Campus
McMahons Rd
Frankston, VIC 3199
AUSTRALIA
Phone: 61 3 9904 4394
Facsimile: 61 3 9904 4124
Email: robert.mark.bram@infotech.monash.edu.au
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Pause Task?
Posted by Robert Mark Bram <re...@optusnet.com.au>.
Hi Oleg!
> You can use the <input> task, but it will be quite nagging because it
> displays small dialog.
I tested with this:
<input message="Press Return key to continue..."/>
It didn't display a dialog - in fact it's perfect!
Rob
:)
--
Robert Mark Bram
B.Comp.(Systems Development/Business Systems)
B.Net.Comp.(Hons)
Doctor of Philosophy Student
School of Network Computing
Faculty of Information Technology
Monash University
Peninsula Campus
McMahons Rd
Frankston, VIC 3199
AUSTRALIA
Phone: 61 3 9904 4394
Facsimile: 61 3 9904 4124
Email: robert.mark.bram@infotech.monash.edu.au
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: Pause Task?
Posted by "Oleg S. Estekhin" <ol...@yandex.ru>.
Hi
You can use the <input> task, but it will be quite nagging because it displays small dialog.
> -----Original Message-----
> From: Robert Mark Bram [mailto:relaxedrob@optusnet.com.au]
> Sent: Saturday, May 15, 2004 7:28 PM
> To: Ant
> Subject: Pause Task?
>
>
> Hi All!
>
> I have a batch file that I would like to convert to an and build file.
>
> It has a number of tasks that must be initialised consecutively, but
> initialisation takes an arbitrary length of time to complete.
> Therefore my
> batch file waits for the user to press a button between each task before
> launching the next one. It uses "pause" to do this.
>
> Is there a portable way to do this with ANT. I realise there is "waitfor"
> but this will not work - because each of the consecutive tasks still runs
> after initialisation.
>
> The job actually starts a series of four server apps up.. in order. The
> user has to wait for each one to initialise (and there be up and running)
> before initialising the next one.
>
> I also realise I could just have the user type in four ant commands.. but
> I would like have a way to launch all four with one Target and user
> intervention.
>
> Any ideas would be most appreciated!
>
> Rob
> :)
>
> --
> Robert Mark Bram
> B.Comp.(Systems Development/Business Systems)
> B.Net.Comp.(Hons)
> Doctor of Philosophy Student
>
> School of Network Computing
> Faculty of Information Technology
> Monash University
> Peninsula Campus
> McMahons Rd
> Frankston, VIC 3199
> AUSTRALIA
>
> Phone: 61 3 9904 4394
> Facsimile: 61 3 9904 4124
> Email: robert.mark.bram@infotech.monash.edu.au
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org