public void consumeLine(String line) {
io.getErr().println(line);
}
};
SonarRunnerProccess sonarRunnerProccess = new SonarRunnerProccess(getServerUrl(), getProjectContext().getProject());
sonarRunnerProccess.setAnalysisMode(SonarRunnerProccess.AnalysisMode.valueOf(NbPreferences.forModule(SonarQubeOptionsPanel.class).get("runner.analysisMode", "Preview").toUpperCase()));
sonarRunnerProccess.setOutConsumer(out);
sonarRunnerProccess.setErrConsumer(err);
return sonarRunnerProccess.executeRunner(getUserCredentials(), new ProcessMonitor() {
@Override
public boolean stop() {
return stopped;
}