]> source.dussan.org Git - sonar-scanner-cli.git/commitdiff
SONARPLUGINS-2947 EnvironmentInformation is badly initialized
authorJulien HENRY <julien.henry@sonarsource.com>
Tue, 18 Jun 2013 09:38:04 +0000 (11:38 +0200)
committerJulien HENRY <julien.henry@sonarsource.com>
Wed, 19 Jun 2013 10:21:48 +0000 (12:21 +0200)
sonar-runner-batch/src/main/java/org/sonar/runner/batch/IsolatedLauncher.java

index 825c0e1a5908b97469a9c83c9aeb82b779ea257a..6eed0d13d6761a326c122e1f657a45adc17e6d99 100644 (file)
@@ -48,7 +48,7 @@ public class IsolatedLauncher {
   Batch createBatch(Properties properties, List<Object> 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) {