From 7aa50bf83d98f6bc7644e53c3c2fc9b659c4639a Mon Sep 17 00:00:00 2001 From: Decebal Suiu Date: Thu, 25 Jun 2015 19:49:50 +0300 Subject: [PATCH] make pluginsDirectory canonical --- .../src/main/java/ro/fortsoft/pf4j/DefaultPluginManager.java | 5 +++++ 1 file changed, 5 insertions(+) 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()); } -- 2.39.5