Skip to content
Snippets Groups Projects
Commit 71c29d09 authored by Luc Everse's avatar Luc Everse :passport_control:
Browse files

Merge branch 'optional-plugin-dir' into 'development'

Don't run the plugin loader if the dir is missing

Closes #255

See merge request !154
parents 88beb988 6e871255
No related branches found
No related tags found
2 merge requests!161Release 2.3.2,!154Don't run the plugin loader if the dir is missing
Pipeline #429427 passed
......@@ -22,6 +22,7 @@ import java.security.PrivilegedActionException;
import java.security.PrivilegedExceptionAction;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.stream.Collectors;
/**
......@@ -92,6 +93,11 @@ public class PluginLoader {
this.settings.get("plugins directory", String.class)
);
if (Files.notExists(dir)) {
logger.warn("Plugins directory {} does not exist, skipping plugins", dir);
return Collections.emptyList();
}
// Find all loadable jars in that directory
final Collection<URL> urls;
try (var files = Files.list(dir)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment