ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: Open new command window for ANT task
Date Tue, 01 Jun 2004 16:02:42 GMT
Is there truly a need for actual, visible windows?  Or
do you just mean that you want the processes to be
independent of the Java process that runs Ant?  This
is usually what people want and they seem to do fine
with the <exec> or <java> tasks--each has a spawn
attribute that, when set to "true", creates (or,
indeed, spawns) a new process.

-Matt

--- Robert Mark Bram <relaxedrob@optusnet.com.au>
wrote:
> Thank you to all for the advice!
> 
> So far, the tack I am taking is:
>   1. writing a gui module that will redirect
> standard and error output to a 
> JTextPane
>   2. having that module use
> Runtime.getRuntime().exec() to run a 'os' 
> command (i.e. Jini)
>   3. put that into an Ant task..
> So far I am up to the second step!
> 
> Rob
> :)
> 
> >> From: Robert Mark Bram
> [mailto:relaxedrob@optusnet.com.au]
> >> I need to run several Java processes in new
> windows in a particular 
> >> order:
> >> - a class server
> >> - a Jini lookup server
> >> - another class server
> >> - a service provider
> >> - a client....
> >>
> >> Each of these should spin off into a new command
> window so they can keep
> >> running and let the next process be launched..
> This is easy to do with a
> >> batch/shell file and I am hoping to do the same
> with Ant..
> >>
> >> Do you think this can be done?
> >
> > If you don't mind having Ant be the parent of all
> these processes,
> > And sticking around, you could start all the
> servers in <parallel>,
> > Probably redirecting each server's output to avoid
> their multiplexing.
> >
> > I'm never done this, but others have. You may also
> use DOS/SH instead
> > Of Ant as Kenneth suggested... --DD
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> dev-unsubscribe@ant.apache.org
> > For additional commands, e-mail:
> dev-help@ant.apache.org
> >
> 
> 
> 
> -- 
> 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:
> dev-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> dev-help@ant.apache.org
> 




	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message