Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3394b6e

Browse files
committed
eclipse downloader: When downloading sources, accept failure.
1 parent03cd61a commit3394b6e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
importjava.io.BufferedInputStream;
2525
importjava.io.ByteArrayInputStream;
26-
importjava.io.Closeable;
2726
importjava.io.File;
2827
importjava.io.FileOutputStream;
2928
importjava.io.FilenameFilter;
@@ -73,7 +72,12 @@ public static void main(String[] args) throws Exception {
7372
// Download artifact source
7473
intindex =artifact.lastIndexOf("_");
7574
Stringsource =artifact.substring(0,index) +".source" +artifact.substring(index);
76-
downloadFile(source,pluginSource,pluginTarget);
75+
try {
76+
downloadFile(source,pluginSource,pluginTarget);
77+
}catch (Exceptione) {
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)

[8]ページ先頭

©2009-2025 Movatter.jp