Skip to content

Commit

Permalink
eclipse downloader: When downloading sources, accept failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
rzwitserloot committed Oct 24, 2024
1 parent 03cd61a commit 3394b6e
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

import java.io.BufferedInputStream;
import java.io.ByteArrayInputStream;
import java.io.Closeable;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FilenameFilter;
Expand Down Expand Up @@ -73,7 +72,12 @@ public static void main(String[] args) throws Exception {
// Download artifact source
int index = artifact.lastIndexOf("_");
String source = artifact.substring(0, index) + ".source" + artifact.substring(index);
downloadFile(source, pluginSource, pluginTarget);
try {
downloadFile(source, pluginSource, pluginTarget);
} catch (Exception e) {
// 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.
System.out.println("[failed]");
}
}

writeEclipseLibrary(target, eclipseVersion);
Expand Down

0 comments on commit 3394b6e

Please sign in to comment.