ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kenneth Wood <>
Subject RE: Open new command window for ANT task
Date Sun, 30 May 2004 16:37:14 GMT
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 [] 
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 

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


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

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?


Robert Mark Bram
B.Comp.(Systems Development/Business Systems)
Doctor of Philosophy Student

School of Network Computing
Faculty of Information Technology
Monash University
Peninsula Campus
McMahons Rd
Frankston, VIC 3199

Phone:  61 3 9904 4394
Facsimile:  61 3 9904 4124

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message