aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch-bootstrapper
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2011-01-31 13:02:48 +0300
committerEvgeny Mandrikov <mandrikov@gmail.com>2011-01-31 13:03:30 +0300
commit19d096b3cefaba7805d98cc92e8c7dff577c5c2f (patch)
treee01345c72ff4331be4363d2274f342e640fb66d7 /sonar-batch-bootstrapper
parente54e57982525e7e91189cdd989fa2d90a6685989 (diff)
downloadsonarqube-19d096b3cefaba7805d98cc92e8c7dff577c5c2f.tar.gz
sonarqube-19d096b3cefaba7805d98cc92e8c7dff577c5c2f.zip
Change format of response from BatchResourcesServlet
Diffstat (limited to 'sonar-batch-bootstrapper')
-rw-r--r--sonar-batch-bootstrapper/src/main/java/org/sonar/batch/bootstrapper/BatchDownloader.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/sonar-batch-bootstrapper/src/main/java/org/sonar/batch/bootstrapper/BatchDownloader.java b/sonar-batch-bootstrapper/src/main/java/org/sonar/batch/bootstrapper/BatchDownloader.java
index eead8dc6d5e..27b28df1cf7 100644
--- a/sonar-batch-bootstrapper/src/main/java/org/sonar/batch/bootstrapper/BatchDownloader.java
+++ b/sonar-batch-bootstrapper/src/main/java/org/sonar/batch/bootstrapper/BatchDownloader.java
@@ -76,10 +76,12 @@ public class BatchDownloader {
String libs = remoteContent(BATCH_PATH);
- for (String lib : libs.split(",")) {
- File file = new File(toDir, lib);
- remoteContentToFile(BATCH_PATH + lib, file);
- files.add(file);
+ for (String lib : libs.split("\n")) {
+ if ("".equals(lib)) {
+ File file = new File(toDir, lib);
+ remoteContentToFile(BATCH_PATH + lib, file);
+ files.add(file);
+ }
}
return files;