From cb4a622a5cdf33e32e2191bf74bc2bb2089b9543 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Tue, 18 Jun 2013 11:38:04 +0200 Subject: [PATCH] SONARPLUGINS-2947 EnvironmentInformation is badly initialized --- .../main/java/org/sonar/runner/batch/IsolatedLauncher.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.39.5