mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Hibernate 4: library type, new file templates, download
This commit is contained in:
+10
-2
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user