ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Li, Jerry" <>
Subject RE: start process
Date Tue, 01 Oct 2002 16:38:03 GMT
I think I have posted a solution down here a few weeks ago. Seems you have
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 win2k.
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 script
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 script
will be used by many developers invoking targets from netbeans ide to start
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 notified
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 from
your computer. Thank you. 

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message