Then you should write a script to
open all your command windows in the
right sequence, and launch that one script
from Ant. As you stated, it's easy to do
in a batch/shell file. Why are you torturing
Ant into doing the batch/shell file's job??

You don't really say what you are trying to do,
but please remember that Ant's original and main 
purpose is to compile java code and create jars, wars,
etc for application deployment. When you find yourself
trying to use a wrench to do the job of a screwdriver,
maybe it's time to re-think the tool selection...

-----Original Message-----
From: Robert Mark Bram [mailto:[EMAIL PROTECTED] 
Sent: Sunday, May 30, 2004 10:29 AM
To: 'Ant Developers List'
Subject: Re: Open new command window for ANT task


Hi DD!

Thank you very much for the response!

I read the FAQ in response to your message - but I still don't see how to 
do what I want, which is to open a new command window and run something in 
it..

<exec dir="${scripts}" executable="cmd.exe" >
    <arg line="/c test.bat"/>
</exec>

or

<exec dir="${scripts}" executable="cmd.exe" >
    <arg line="start"/>
    <arg line="/c test.bat"/>
</exec>


For example, this runs a batch file, but still in the same window.

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?

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: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to