From 4334e2afb0fbed74496a70a9d635067e2169945c Mon Sep 17 00:00:00 2001 From: Evgeny Mandrikov Date: Wed, 9 Feb 2011 21:17:09 +0000 Subject: [PATCH] ANT-TASK, SONAR-RUNNER: Follow changes in upstream - use User-Agent in Bootstrapper --- src/main/java/org/sonar/runner/Main.java | 12 ++++++------ 1 file 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()); } -- 2.39.5