Browse Source

make pluginsDirectory canonical

pull/54/head
Decebal Suiu 10 years ago
parent
commit
7aa50bf83d
  1. 5
      pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginManager.java

5
pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginManager.java

@ -717,6 +717,11 @@ public class DefaultPluginManager implements PluginManager {
pluginStatusProvider = createPluginStatusProvider();
pluginRepository = createPluginRepository();
try {
pluginsDirectory = pluginsDirectory.getCanonicalFile();
} catch (IOException e) {
log.error(e.getMessage(), e);
}
System.setProperty("pf4j.pluginsDir", pluginsDirectory.getAbsolutePath());
}

Loading…
Cancel
Save