From 69d136d3a71e36521ddd56d0e5b037fb7472c95d Mon Sep 17 00:00:00 2001 From: Eric Hartmann Date: Sat, 21 Feb 2015 08:28:12 +0100 Subject: SONAR-6036 : Remove KnownJavaCommand and clean the memory at the startup of the ProcessCommand --- sonar-application/src/main/java/org/sonar/application/App.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sonar-application/src/main') diff --git a/sonar-application/src/main/java/org/sonar/application/App.java b/sonar-application/src/main/java/org/sonar/application/App.java index f5418d42ab8..68cb982a845 100644 --- a/sonar-application/src/main/java/org/sonar/application/App.java +++ b/sonar-application/src/main/java/org/sonar/application/App.java @@ -28,7 +28,6 @@ import org.sonar.process.Props; import org.sonar.process.StopWatcher; import org.sonar.process.Stoppable; import org.sonar.process.monitor.JavaCommand; -import org.sonar.process.monitor.KnownJavaCommand; import org.sonar.process.monitor.Monitor; import java.io.File; @@ -55,7 +54,7 @@ public class App implements Stoppable { public void start(Props props) { if (props.valueAsBoolean(ProcessConstants.ENABLE_STOP_COMMAND, false)) { File tempDir = props.nonNullValueAsFile(ProcessConstants.PATH_TEMP); - ProcessCommands commands = new ProcessCommands(tempDir, KnownJavaCommand.APP.getIndex()); + ProcessCommands commands = new ProcessCommands(tempDir, 0); stopWatcher = new StopWatcher(commands, this); stopWatcher.start(); } -- cgit v1.2.3