aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDecebal Suiu <decebal.suiu@gmail.com>2015-06-25 19:49:50 +0300
committerDecebal Suiu <decebal.suiu@gmail.com>2015-06-25 19:49:50 +0300
commit7aa50bf83d98f6bc7644e53c3c2fc9b659c4639a (patch)
treec6aca0bf2563712ad0c68ec4f95e7b213c0f5b71
parent96401ef9a8f529cfd743da34035460b17a562c6d (diff)
downloadpf4j-7aa50bf83d98f6bc7644e53c3c2fc9b659c4639a.tar.gz
pf4j-7aa50bf83d98f6bc7644e53c3c2fc9b659c4639a.zip
make pluginsDirectory canonical
-rw-r--r--pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginManager.java5
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());
}