diff options
author | Decebal Suiu <decebal.suiu@gmail.com> | 2015-06-25 19:49:50 +0300 |
---|---|---|
committer | Decebal Suiu <decebal.suiu@gmail.com> | 2015-06-25 19:49:50 +0300 |
commit | 7aa50bf83d98f6bc7644e53c3c2fc9b659c4639a (patch) | |
tree | c6aca0bf2563712ad0c68ec4f95e7b213c0f5b71 | |
parent | 96401ef9a8f529cfd743da34035460b17a562c6d (diff) | |
download | pf4j-7aa50bf83d98f6bc7644e53c3c2fc9b659c4639a.tar.gz pf4j-7aa50bf83d98f6bc7644e53c3c2fc9b659c4639a.zip |
make pluginsDirectory canonical
-rw-r--r-- | pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginManager.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginManager.java b/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginManager.java index 147ec3d..49c87f1 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginManager.java +++ b/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()); } |