Make sure that libswt exists
In the hop-web Docker image, this directory does not exist, and the generation of a fat JAR fails.
@@ -193,8 +193,12 @@ public class HopBeamGuiPlugin {
public static final List<String> findInstalledJarFilenames() {
Set<File> jarFiles = new HashSet<>();
jarFiles.addAll(FileUtils.listFiles(new File("lib"), new String[] {"jar"}, true));
+
+ File libSwtFiles = new File("libswt/linux/x86_64");
+ if (libSwtFiles.exists())
jarFiles.addAll(
- FileUtils.listFiles(new File("libswt/linux/x86_64"), new String[] {"jar"}, true));
+ FileUtils.listFiles(libSwtFiles, new String[] {"jar"}, true));
+
jarFiles.addAll(FileUtils.listFiles(new File("plugins"), new String[] {"jar"}, true));
List<String> jarFilenames = new ArrayList<>();
