diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-01-31 17:35:09 +0300 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-01-31 19:40:17 +0300 |
commit | 79939c458e96e0238c32f561dbdc13708ba4878e (patch) | |
tree | 7b08174d73c6b1bc021dbac6d5abaa06a47a8219 /sonar-batch-bootstrapper | |
parent | 84b0c24d3df04fb61e50015d43c5350bc2c15a20 (diff) | |
download | sonarqube-79939c458e96e0238c32f561dbdc13708ba4878e.tar.gz sonarqube-79939c458e96e0238c32f561dbdc13708ba4878e.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.java | 10 |
1 files changed, 4 insertions, 6 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 250559a0752..eead8dc6d5e 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,12 +76,10 @@ public class BatchDownloader { String libs = remoteContent(BATCH_PATH); - for (String lib : libs.split("\n")) { - if (!"".equals(lib)) { - File file = new File(toDir, lib); - remoteContentToFile(BATCH_PATH + lib, file); - files.add(file); - } + for (String lib : libs.split(",")) { + File file = new File(toDir, lib); + remoteContentToFile(BATCH_PATH + lib, file); + files.add(file); } return files; |