diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-02-09 21:17:09 +0000 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-02-09 21:17:09 +0000 |
commit | 4334e2afb0fbed74496a70a9d635067e2169945c (patch) | |
tree | 7ac09ad2474c0cd7fe661e40c99a8bf6984a8af0 /src | |
parent | 3ef2a7311179e438b31215a8e50494f3b0bff2b4 (diff) | |
download | sonar-scanner-cli-4334e2afb0fbed74496a70a9d635067e2169945c.tar.gz sonar-scanner-cli-4334e2afb0fbed74496a70a9d635067e2169945c.zip |
ANT-TASK, SONAR-RUNNER: Follow changes in upstream - use User-Agent in Bootstrapper
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/sonar/runner/Main.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/org/sonar/runner/Main.java b/src/main/java/org/sonar/runner/Main.java index ba4c63e..1900e21 100644 --- a/src/main/java/org/sonar/runner/Main.java +++ b/src/main/java/org/sonar/runner/Main.java @@ -20,11 +20,6 @@ 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()); } |