From: Evgeny Mandrikov Date: Wed, 9 Feb 2011 21:17:09 +0000 (+0000) Subject: ANT-TASK, SONAR-RUNNER: Follow changes in upstream - use User-Agent in Bootstrapper X-Git-Tag: 2.5-rc1~350 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4334e2afb0fbed74496a70a9d635067e2169945c;p=sonar-scanner-cli.git ANT-TASK, SONAR-RUNNER: Follow changes in upstream - use User-Agent in Bootstrapper --- 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()); }