ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject RE: start process
Date Tue, 01 Oct 2002 17:29:47 GMT
Thanks for the response, but that did not return to the ant script and
exit the script.  

But this did:
	<exec executable="${UTILS.HOME}/utils/startTask.cmd" os="Windows
2000" failonerror="true"/>

${UTILS.HOME}/utils/startTask.cmd has the following line in it:
	start /I cmd.exe /K "%WL_HOME%\startWebLogic.cmd & exit"

-----Original Message-----
From: Li, Jerry []
Sent: Tuesday, October 01, 2002 11:38 a
To: 'Ant Users List'
Subject: RE: start process

I think I have posted a solution down here a few weeks ago. Seems you
not seen it, here I post it again.

step 1: use exec task
		<exec executable="cmd.exe" os="Windows 2000"
timeout="180000" failonerror="true">
			<arg value="/C"/>
			<arg value="start"/>
			<arg value="${WC_HOME}/startWebLogic.cmd"/>

step 2: put the following inside your *.bat/*.cmd file
	@exit 0

have fun

-----Original Message-----
From: Shackelford, John-Mason []
Sent: Tuesday, October 01, 2002 8:23 AM
To: 'Ant Users List'
Subject: RE: start process


I believe you were on the right track using the "start" command in
This is the approach I use. I wonder if the /k switch would make any
difference for you? 

John-Mason Shackelford

Software Developer
NCS Pearson - Measurement Services
2510 North Dodge St.
Iowa City, IA 52245

-----Original Message-----
From: [] 
Sent: Tuesday, October 01, 2002 9:38 AM
Subject: start process

Is there a way to have an ant script start a process, return to the
and then exit the script leaving the process up and running?
o/s = Windows 2000 sp3
I have tried parallel and fork.
I have also tried creating an ant script that invokes a batch file
containing only "start c:\startServer.cmd", but the script does not exit
until I run "c:\stopServer.cmd" (stop the started process)
I could do some trick stuff, but I don't really want to, as the ant
will be used by many developers invoking targets from netbeans ide to
and stop an app/web server.
thanks in advance for any help.

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


This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 

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

Note:  The information contained in this message may be privileged and
confidential and protected from disclosure. If the reader of this
message is
not the intended recipient, or an employee or agent responsible for
delivering this message to the intended recipient, you are hereby
that any dissemination, distribution or copying of this communication is
strictly prohibited. If you have received this communication in error,
please notify us immediately by replying to the message and deleting it
your computer. Thank you. 

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

View raw message