From: Julien HENRY Date: Tue, 18 Jun 2013 09:38:04 +0000 (+0200) Subject: SONARPLUGINS-2947 EnvironmentInformation is badly initialized X-Git-Tag: 2.5-rc1~134 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cb4a622a5cdf33e32e2191bf74bc2bb2089b9543;p=sonar-scanner-cli.git SONARPLUGINS-2947 EnvironmentInformation is badly initialized --- diff --git a/sonar-runner-batch/src/main/java/org/sonar/runner/batch/IsolatedLauncher.java b/sonar-runner-batch/src/main/java/org/sonar/runner/batch/IsolatedLauncher.java index 825c0e1..6eed0d1 100644 --- a/sonar-runner-batch/src/main/java/org/sonar/runner/batch/IsolatedLauncher.java +++ b/sonar-runner-batch/src/main/java/org/sonar/runner/batch/IsolatedLauncher.java @@ -48,7 +48,7 @@ public class IsolatedLauncher { Batch createBatch(Properties properties, List extensions) { ProjectReactor projectReactor = null; initLogging(properties); - EnvironmentInformation env = new EnvironmentInformation(properties.getProperty("sonarRunner.userAgent"), properties.getProperty("sonarRunner.userAgentVersion")); + EnvironmentInformation env = new EnvironmentInformation(properties.getProperty("sonarRunner.app"), properties.getProperty("sonarRunner.appVersion")); Batch.Builder builder = Batch.builder() .setEnvironment(env) .addComponents(extensions); @@ -60,7 +60,7 @@ public class IsolatedLauncher { projectReactor = new ProjectReactorBuilder(propsClone).build(); } else { // only on sonar 3.5+... in theory - builder.setGlobalProperties((Map)properties); + builder.setGlobalProperties((Map) properties); } if (projectReactor != null) {