I've been wanting the "fork" option for a while, but didn't get around to commenting on it until now.
McCullough, Gary wrote:
You can use the commandline "start" to start a secondary command process. Would that work for you?
________________________________
Gary McCullough -----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Curtis
Zarger
Sent: Thursday, September 23, 2004 9:15 AM
To: 'Felice Vittoria'; Nant-Users (E-mail)
Subject: RE: [Nant-users] running tasks/targets in parallel
Ref: post from Troy Laurin 8/4/04
Hi,
I would like to run an external program from NAnt.
I want to run the Unit Tests in NAnt while that external
program is running. How can I do that? Right now I'm trying like this....
The nant <exec> task currently doesn't support starting a process and then continuing in parallel (If this were available, it would be useful to have a <join> task which waited for process completion...).
One way you can do what you need is to create two small programs... the first program will execute and divorce your Server.exe process (Divorce == ensure that Server.exe will continue to run after your bootstrap program has terminated. I don't know if doing this requires anything special in ..Net) The second program will find and terminate the server process.
An alternative to do this is to set up your Server.exe as a service, and use the service tasks in NAnt to update the service from the new build, then start and stop the server: http://nant.sourceforge.net/nightly/help/tasks/regsvcs.html http://nant.sourceforge.net/nightly/help/tasks/servicecontroller.html
-T
-----Original Message-----
From: Felice Vittoria [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 22, 2004 10:30 AM
To: Nant-Users (E-mail)
Subject: [Nant-users] running tasks/targets in parallel
Hello all,
I was wondering if it's possible to run tasks/targets in parallel. If
so,
how do you do it?
An example for me running tasks in parallel the vssdiff task. I have something like:
vssdiff (project #1 info)
vssdiff (project #2 info)
vssdiff (project #3 info)
vssdiff (project #4 info)
Unfortunately the code is broken up into different projects with each in
a
different location; otherwise I would just use one. So, what I want to
do
is run each vssdiff in parallel so that the start time/date is the same
for
each vssdiff.
Thanks, Felice
------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users
------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users
------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users
------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users