Hi Christian Am Donnerstag, den 11.02.2010, 13:35 -0800 schrieb Christian Ruppert: > Hi, > I know, its a strange request. But hey, the whole setup is funny: > > I am using my desktop to create some test apps for my tablet. > The desktop solution is checked into SVN. > > The tablet uses CCnet to checkout and build the app. > So far everything works perfect. > > Now, I want something more "exotic". After a successful build, I want > ccnet to start my app.
Actually your request is not that exotic. I have been using CCNet to validate and deploy its own configuration and restart IIS afterwards in a demo setup once. > I can't use exec as last task, because this would cause my ccnet not > to finish (the app opens a window). > So is there an easy way to start up an app after a build, kind of > asynchroneous? > > And now, if you still need another challenge: Can I stop this app > after SVN update? > Because, obviously, as long as the app runs the build would fail > (can"t replace a exe which is currently running) If your app is a service you could use the nant to stop and start it as you like. There is a service controller task, but i dont recall the name of the task right now from the top of my head... If your app is not a service you might need to write a small wrapper that does what you need. Or maybe you can use psexec from pstools (it's a Microsoft product now, earlier it was released by Sysinternals). > The question is not that "life threatening", I can of course write a > little helper in .NET monitoring the files and starting and stopping > the app "by hand". But I was just wondering if this can be done purely > in ccnet.. > > Chris I hope this helps you to achieve what you want to do. it would be nice if you could let us know how you finally do it when you found a solution. -- Mit freundlichen Grüßen / Best regards Daniel Hommel
