mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-18 01:06:03 +10:00
[#49] fixed test fail
This commit is contained in:
@@ -20,7 +20,6 @@ public class PluginLoader {
|
||||
URL[] jars = findJars(pluginPath);
|
||||
return new PluginLoader(jars);
|
||||
}
|
||||
|
||||
|
||||
public PluginLoader(URL[] jars) {
|
||||
this.jars = jars;
|
||||
@@ -47,6 +46,10 @@ public class PluginLoader {
|
||||
private static URL[] findJars(String pluginPath) {
|
||||
File file = new File(pluginPath);
|
||||
|
||||
if (!file.exists() || !file.isDirectory()) {
|
||||
return new URL[0];
|
||||
}
|
||||
|
||||
File[] jars = file.listFiles(new FilenameFilter() {
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user