diff options
Diffstat (limited to 'sonar-batch')
6 files changed, 10 insertions, 9 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/GlobalContainer.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/GlobalContainer.java index bffee518e54..7aaf0f6be32 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/GlobalContainer.java +++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/GlobalContainer.java @@ -24,7 +24,7 @@ import org.sonar.api.config.EmailSettings; import org.sonar.api.platform.ComponentContainer; import org.sonar.api.platform.PluginMetadata; import org.sonar.api.utils.Durations; -import org.sonar.api.utils.HttpDownloader; +import org.sonar.core.util.DefaultHttpDownloader; import org.sonar.api.utils.System2; import org.sonar.api.utils.UriReader; import org.sonar.api.utils.internal.TempFolderCleaner; @@ -88,7 +88,7 @@ public class GlobalContainer extends ComponentContainer { DefaultServer.class, new TempFolderProvider(), TempFolderCleaner.class, - HttpDownloader.class, + DefaultHttpDownloader.class, UriReader.class, new FileCacheProvider(), System2.INSTANCE, diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/ServerClient.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/ServerClient.java index faeef8385d8..91eac2e7ebe 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/ServerClient.java +++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/ServerClient.java @@ -33,8 +33,9 @@ import org.apache.commons.lang.StringEscapeUtils; import org.apache.commons.lang.StringUtils; import org.sonar.api.BatchComponent; import org.sonar.api.CoreProperties; -import org.sonar.api.utils.HttpDownloader; +import org.sonar.core.util.DefaultHttpDownloader; import org.sonar.batch.bootstrapper.EnvironmentInformation; +import org.sonar.api.utils.HttpDownloader; import javax.annotation.Nullable; @@ -57,11 +58,11 @@ public class ServerClient implements BatchComponent { private static final String GET = "GET"; private BootstrapProperties props; - private HttpDownloader.BaseHttpDownloader downloader; + private DefaultHttpDownloader.BaseHttpDownloader downloader; public ServerClient(BootstrapProperties settings, EnvironmentInformation env) { this.props = settings; - this.downloader = new HttpDownloader.BaseHttpDownloader(settings.properties(), env.toString()); + this.downloader = new DefaultHttpDownloader.BaseHttpDownloader(settings.properties(), env.toString()); } public String getURL() { diff --git a/sonar-batch/src/main/java/org/sonar/batch/qualitygate/QualityGateProvider.java b/sonar-batch/src/main/java/org/sonar/batch/qualitygate/QualityGateProvider.java index 4ede40d4ed9..83be230b314 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/qualitygate/QualityGateProvider.java +++ b/sonar-batch/src/main/java/org/sonar/batch/qualitygate/QualityGateProvider.java @@ -28,9 +28,9 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.sonar.api.config.Settings; import org.sonar.api.measures.MetricFinder; -import org.sonar.api.utils.HttpDownloader; import org.sonar.api.utils.MessageException; import org.sonar.batch.bootstrap.ServerClient; +import org.sonar.api.utils.HttpDownloader; import java.net.HttpURLConnection; diff --git a/sonar-batch/src/main/java/org/sonar/batch/repository/DefaultServerIssuesLoader.java b/sonar-batch/src/main/java/org/sonar/batch/repository/DefaultServerIssuesLoader.java index 8f32995522a..8193d3a3ebe 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/repository/DefaultServerIssuesLoader.java +++ b/sonar-batch/src/main/java/org/sonar/batch/repository/DefaultServerIssuesLoader.java @@ -21,9 +21,9 @@ package org.sonar.batch.repository; import com.google.common.base.Function; import com.google.common.io.InputSupplier; -import org.sonar.api.utils.HttpDownloader; import org.sonar.batch.bootstrap.ServerClient; import org.sonar.batch.protocol.input.BatchInput.ServerIssue; +import org.sonar.api.utils.HttpDownloader; import java.io.IOException; import java.io.InputStream; diff --git a/sonar-batch/src/test/java/org/sonar/batch/issue/tracking/DefaultServerLineHashesLoaderTest.java b/sonar-batch/src/test/java/org/sonar/batch/issue/tracking/DefaultServerLineHashesLoaderTest.java index 28d9b251ec9..2986564bbb0 100644 --- a/sonar-batch/src/test/java/org/sonar/batch/issue/tracking/DefaultServerLineHashesLoaderTest.java +++ b/sonar-batch/src/test/java/org/sonar/batch/issue/tracking/DefaultServerLineHashesLoaderTest.java @@ -23,8 +23,8 @@ import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; -import org.sonar.api.utils.HttpDownloader; import org.sonar.batch.bootstrap.ServerClient; +import org.sonar.api.utils.HttpDownloader; import java.net.URI; import java.net.URISyntaxException; diff --git a/sonar-batch/src/test/java/org/sonar/batch/qualitygate/QualityGateProviderTest.java b/sonar-batch/src/test/java/org/sonar/batch/qualitygate/QualityGateProviderTest.java index 6c9b252f33d..12a9976207b 100644 --- a/sonar-batch/src/test/java/org/sonar/batch/qualitygate/QualityGateProviderTest.java +++ b/sonar-batch/src/test/java/org/sonar/batch/qualitygate/QualityGateProviderTest.java @@ -26,9 +26,9 @@ import org.mockito.runners.MockitoJUnitRunner; import org.slf4j.Logger; import org.sonar.api.config.Settings; import org.sonar.api.measures.MetricFinder; -import org.sonar.api.utils.HttpDownloader; import org.sonar.api.utils.MessageException; import org.sonar.batch.bootstrap.ServerClient; +import org.sonar.api.utils.HttpDownloader; import java.net.HttpURLConnection; import java.net.URI; |