]> source.dussan.org Git - sonar-scanner-cli.git/commitdiff
ANT-TASK, SONAR-RUNNER: Follow changes in upstream - use User-Agent in Bootstrapper
authorEvgeny Mandrikov <mandrikov@gmail.com>
Wed, 9 Feb 2011 21:17:09 +0000 (21:17 +0000)
committerEvgeny Mandrikov <mandrikov@gmail.com>
Wed, 9 Feb 2011 21:17:09 +0000 (21:17 +0000)
src/main/java/org/sonar/runner/Main.java

index ba4c63e3f762af98ce0f317ddae393242017be34..1900e21ade8d1f013815b25817671174302efee5 100644 (file)
 
 package org.sonar.runner;
 
-import org.sonar.batch.bootstrapper.BootstrapClassLoader;
-import org.sonar.batch.bootstrapper.BootstrapException;
-import org.sonar.batch.bootstrapper.Bootstrapper;
-import org.sonar.batch.bootstrapper.BootstrapperIOUtils;
-
 import java.io.*;
 import java.lang.reflect.Constructor;
 import java.lang.reflect.InvocationTargetException;
@@ -34,6 +29,11 @@ import java.util.HashMap;
 import java.util.Map;
 import java.util.Properties;
 
+import org.sonar.batch.bootstrapper.BootstrapClassLoader;
+import org.sonar.batch.bootstrapper.BootstrapException;
+import org.sonar.batch.bootstrapper.Bootstrapper;
+import org.sonar.batch.bootstrapper.BootstrapperIOUtils;
+
 public class Main {
 
   private static boolean debug = false;
@@ -62,7 +62,7 @@ public class Main {
     String serverUrl = properties.getProperty("sonar.host.url", "http://localhost:9000");
     log("Sonar server: " + serverUrl);
     log("Sonar work directory: " + getWorkDir().getAbsolutePath());
-    bootstrapper = new Bootstrapper(serverUrl, getWorkDir());
+    bootstrapper = new Bootstrapper("SonarRunner/" + getRunnerVersion(), serverUrl, getWorkDir());
     checkSonarVersion();
     delegateExecution(createClassLoader());
   }