Thanks Paul, will give it a go. I assume you do it from another shell or after Ctrl-C?
PS ant run || taskkill -F -IM Java.exe is more specific Steve On 13 August 2012 19:40, Paul Sharples <[email protected]> wrote: > On 13/08/2012 19:24, Steve Lee wrote: >> >> I, and at least one other developer, have experienced problems when >> killing Wookie invoked with 'ant run' on Windows. The problem is the >> Java process is often left executing and so a subsequent 'ant run' >> fails. >> >> You can kill the process with Task Manager but as we're working from a >> command line it make sense to use 'taskkill' which appeared in Windows >> XP >> >> taskkill /F /FI "imagename eq Java*" >> >> (the assumption is there is a single task that matches the filter) >> >> I'm running from GIT bash which switches the option switch from / to - >> and using the || (or) operator means you don't even need to use the >> command history >> >> ant run || taskkill -F -FI "imagename eq Java*" >> >> As Ross points out, normally you don't need to restart Wookie so won't >> need this fix. > > > Steve, > > Yes, 'ant run' forks a second java process. Have you tried 'ant stopserver'? > Kills both processes on a Windows 7 machine for me. > > Paul > >> Steve Lee >> Programme Leader (Open Accessibility) >> OpenDirective http://opendirective.com >> >> >> ----- >> No virus found in this message. >> Checked by AVG - www.avg.com >> Version: 2012.0.2197 / Virus Database: 2437/5193 - Release Date: 08/11/12 > >
