slimPort = getNextSlimPort();
}
@Override
public SlimCommandRunningClient build() throws IOException {
CommandRunner commandRunner;
if (useManualStartForTestSystem()) {
commandRunner = new MockCommandRunner(getExecutionLogListener());
} else {
commandRunner = new CommandRunner(buildCommand(), "", createClasspathEnvironment(getClassPath()), getExecutionLogListener(), determineTimeout());
}
return new SlimCommandRunningClient(commandRunner, determineSlimHost(), getSlimPort(), determineTimeout(), getSlimVersion());
}