In addition to the spawn="true" attribute (which is needed) you want the
external process to be in its own window?
Assuming you are on a Windows OS you will need to actually launch (via the
<exec> task) the following
<exec executable="cmd" spawn="true" dir="${basedir}">
<arg line="/k start "/>
<arg value="batchfilename.cmd"/>
</exec>
This should start a separate console window in which your batchfile.cmd will
run asynchronously.
Hope that helps,
Ninju
----- Original Message ----
From: Sujeet Banerjee <[EMAIL PROTECTED]>
To: Ant Users List <[email protected]>
Sent: Tuesday, January 10, 2006 4:45:43 AM
Subject: Re: running external batch from ant
Hello Lothar
Did you try the <....spawn="yes" ...> with the exec task?
Regards
------------------------------------------------------
Sujeet Banerjee
Member of Technical Staff
Persistent Systems Pvt. Ltd.
Visit us at www.persistentsys.com
------------------------------------------------------
"Technology denied is Technology gained"
-- Dr. A.P.J. Abdul Kalam,
President of India
----- Original Message -----
From: Lothar Krenzien
To: [email protected]
Sent: Tuesday, January 10, 2006 3:54 PM
Subject: running external batch from ant
Hi there,
I would like to run an external batch file from ant. Of course no problem.
But I notified that ant
don't proceed until the batch execution finished. Is it possible to start the
batch, let the output
window open and proceed with ant ?
Thanks, Lothar
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
---------------------------------------------------------------------
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]