src/main/java/robocup/server/SoccerServerProcess.java
/**
     * Kill server process when java is terminated (red button in eclipse)
     *
     * @param serverProcess
     */
Kill server process when java is terminated (red button in eclipse)
@param serverProcess
Kill server process when java is terminated ( red button in eclipse ) @param serverProcess
private void addShutDownHook(Process serverProcess) {
        Runnable shutDownHook = serverProcess::destroy;
        Runtime.getRuntime().addShutdownHook(new Thread(shutDownHook));
    }
private void addShutDownHook ( Process serverProcess ) { Runnable shutDownHook = serverProcess :: destroy ; Runtime . getRuntime ( ) . addShutdownHook ( new Thread ( shutDownHook ) ) ; }
Kill server process when java is terminated (red button in eclipse)
 @param serverProcess
Kill server process when java is terminated ( red button in eclipse ) @param serverProcess