Hibernate 4: library type, new file templates, download

This commit is contained in:
Serega Vasiliev
2012-03-09 13:22:02 +01:00
parent ace67be72d
commit 712fb2efde
@@ -70,9 +70,17 @@ public abstract class FileSetVersionsFetcherBase<F extends DownloadableFileSetDe
for (ArtifactItem item : items) {
String url = item.getUrl();
final String prefix = version.getUrlPrefix();
if (!url.startsWith("http://") && prefix != null) {
url = prefix + url;
if (url == null) {
if (prefix != null) {
url = prefix + item.getName();
}
} else {
if (!url.startsWith("http://") && prefix != null) {
url = prefix + url;
}
}
assert url != null;
files.add(DownloadableFileService.getInstance().createFileDescription(url, item.getName()));
}
result.add(createVersion(version, files));