Skip to content

Commit 3394b6e

Browse files
committed
eclipse downloader: When downloading sources, accept failure.
1 parent 03cd61a commit 3394b6e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/support/lombok/eclipse/dependencies/DownloadEclipseDependencies.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
import java.io.BufferedInputStream;
2525
import java.io.ByteArrayInputStream;
26-
import java.io.Closeable;
2726
import java.io.File;
2827
import java.io.FileOutputStream;
2928
import java.io.FilenameFilter;
@@ -73,7 +72,12 @@ public static void main(String[] args) throws Exception {
7372
// Download artifact source
7473
int index = artifact.lastIndexOf("_");
7574
String source = artifact.substring(0, index) + ".source" + artifact.substring(index);
76-
downloadFile(source, pluginSource, pluginTarget);
75+
try {
76+
downloadFile(source, pluginSource, pluginTarget);
77+
} catch (Exception e) {
78+
// It's just the source; sometimes these aren't present (specifically, `org.eclipse.swt` doesn't currently appear to have the sources, at least not using the `_sources` naming scheme). Don't fail, just skip them.
79+
System.out.println("[failed]");
80+
}
7781
}
7882

7983
writeEclipseLibrary(target, eclipseVersion);

0 commit comments

Comments
 (0)