@Test public void environment_variables() { SonarRunner build = SonarRunner.create(); assertThat(build.getEffectiveEnvironmentVariables()) .containsOnly(MapEntry.entry("SONAR_RUNNER_OPTS", "-Djava.awt.headless=true")); build.setEnvironmentVariable("SONAR_RUNNER_OPTS", "-Xmx128m"); assertThat(build.getEffectiveEnvironmentVariables()) .containsOnly(MapEntry.entry("SONAR_RUNNER_OPTS", "-Djava.awt.headless=true -Xmx128m")); }
public static SonarRunner create() { return new SonarRunner() .setProperty(PROP_KEY_SOURCE_ENCODING, DEFAULT_SOURCE_ENCODING); }
SonarRunner extends Build<SonarRunner> { public static SonarRunner create() { return new SonarRunner() .setProperty(PROP_KEY_SOURCE_ENCODING, DEFAULT_SOURCE_ENCODING); } }
SonarRunner extends Build<SonarRunner> { public static SonarRunner create() { return new SonarRunner() .setProperty(PROP_KEY_SOURCE_ENCODING, DEFAULT_SOURCE_ENCODING); } SonarRunner(); }
SonarRunner extends Build<SonarRunner> { public static SonarRunner create() { return new SonarRunner() .setProperty(PROP_KEY_SOURCE_ENCODING, DEFAULT_SOURCE_ENCODING); } SonarRunner(); Version runnerVersion(); boolean isUseOldSonarRunnerScript(); @CheckForNull String classifier(); File getProjectDir(); boolean isDebugLogs(); boolean isShowErrors(); String getTask(); SonarRunner setRunnerVersion(String s); SonarRunner setProjectDir(File dir); SonarRunner setProjectKey(@Nullable String s); SonarRunner setProjectVersion(@Nullable String s); SonarRunner setProjectName(@Nullable String s); SonarRunner setSourceDirs(@Nullable String s); SonarRunner setTestDirs(@Nullable String testDirs); SonarRunner setBinaries(@Nullable String s); SonarRunner setLibraries(@Nullable String s); SonarRunner setLanguage(@Nullable String s); SonarRunner setSourceEncoding(@Nullable String s); SonarRunner setDebugLogs(boolean b); SonarRunner setShowErrors(boolean b); SonarRunner setTask(String task); static SonarRunner create(); static SonarRunner create(File projectDir, String... keyValueProperties); }
SonarRunner extends Build<SonarRunner> { public static SonarRunner create() { return new SonarRunner() .setProperty(PROP_KEY_SOURCE_ENCODING, DEFAULT_SOURCE_ENCODING); } SonarRunner(); Version runnerVersion(); boolean isUseOldSonarRunnerScript(); @CheckForNull String classifier(); File getProjectDir(); boolean isDebugLogs(); boolean isShowErrors(); String getTask(); SonarRunner setRunnerVersion(String s); SonarRunner setProjectDir(File dir); SonarRunner setProjectKey(@Nullable String s); SonarRunner setProjectVersion(@Nullable String s); SonarRunner setProjectName(@Nullable String s); SonarRunner setSourceDirs(@Nullable String s); SonarRunner setTestDirs(@Nullable String testDirs); SonarRunner setBinaries(@Nullable String s); SonarRunner setLibraries(@Nullable String s); SonarRunner setLanguage(@Nullable String s); SonarRunner setSourceEncoding(@Nullable String s); SonarRunner setDebugLogs(boolean b); SonarRunner setShowErrors(boolean b); SonarRunner setTask(String task); static SonarRunner create(); static SonarRunner create(File projectDir, String... keyValueProperties); static final String DEFAULT_SCANNER_VERSION; static final String PROP_KEY_SOURCE_ENCODING; static final String DEFAULT_SOURCE_ENCODING; }