From 30d90c50d1b02d4fd43588b016b6a93bd14a8ab3 Mon Sep 17 00:00:00 2001 From: Christian Sailer Date: Fri, 9 Nov 2018 12:03:50 +0000 Subject: [PATCH] Add cmd file to kill corda jobs on windows --- buildSrc/win_scripts/kill_corda_procs.cmd | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 buildSrc/win_scripts/kill_corda_procs.cmd diff --git a/buildSrc/win_scripts/kill_corda_procs.cmd b/buildSrc/win_scripts/kill_corda_procs.cmd new file mode 100644 index 0000000000..352ed89666 --- /dev/null +++ b/buildSrc/win_scripts/kill_corda_procs.cmd @@ -0,0 +1,14 @@ +@echo off + +REM Setlocal EnableDelayedExpansion +FOR /F "tokens=1,2 delims= " %%G IN ('jps -l') DO (call :sub %%H %%G) +goto :eof + +:sub + +IF %1==net.corda.webserver.WebServer taskkill /F /PID %2 +IF %1==net.corda.node.Corda taskkill /F /PID %2 +IF %1==corda.jar taskkill /F /PID %2 +IF %1==corda-webserver.jar taskkill /F /PID %2 +IF %1==org.gradle.launcher.daemon.bootstrap.GradleDaemon taskkill /F /PID %2 +goto :eof