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;
try {
response.setContentType("text/html");
writer = response.getWriter();
- for (String lib : getLibs()) {
- writer.println(lib);
- }
+ writer.print(StringUtils.join(getLibs(), ','));
} catch (IOException e) {
LOG.error("Unable to provide list of batch resources", e);
response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);