]> source.dussan.org Git - pf4j.git/commitdiff
make pluginsDirectory canonical
authorDecebal Suiu <decebal.suiu@gmail.com>
Thu, 25 Jun 2015 16:49:50 +0000 (19:49 +0300)
committerDecebal Suiu <decebal.suiu@gmail.com>
Thu, 25 Jun 2015 16:49:50 +0000 (19:49 +0300)
pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginManager.java

index 147ec3db9488e8aa5208ac94d8c804e5bab1147a..49c87f1f3fe33f660a5a7726a3722e4d19fadd5e 100644 (file)
@@ -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());
        }