|
@@ -39,7 +39,6 @@ import java.nio.file.FileSystems;
|
39
|
39
|
import java.nio.file.FileVisitResult;
|
40
|
40
|
import java.nio.file.Files;
|
41
|
41
|
import java.nio.file.Path;
|
42
|
|
-import java.nio.file.Paths;
|
43
|
42
|
import java.nio.file.SimpleFileVisitor;
|
44
|
43
|
import java.nio.file.attribute.BasicFileAttributes;
|
45
|
44
|
import java.util.ArrayList;
|
|
@@ -111,7 +110,6 @@ public class PluginInfo implements ServiceProvider {
|
111
|
110
|
public PluginInfo(
|
112
|
111
|
final PluginManager pluginManager,
|
113
|
112
|
final ServiceManager serviceManager,
|
114
|
|
- final String pluginDirectory,
|
115
|
113
|
final PluginMetaData metadata,
|
116
|
114
|
final DMDircMBassador eventBus,
|
117
|
115
|
final IdentityController identityController,
|
|
@@ -125,7 +123,7 @@ public class PluginInfo implements ServiceProvider {
|
125
|
123
|
this.metaData = metadata;
|
126
|
124
|
|
127
|
125
|
try {
|
128
|
|
- pluginFilesystem = FileSystems.newFileSystem(Paths.get(pluginDirectory, filename), null);
|
|
126
|
+ pluginFilesystem = FileSystems.newFileSystem(metadata.getPluginPath(), null);
|
129
|
127
|
} catch (IOException ex) {
|
130
|
128
|
lastError = "Error loading filesystem: " + ex.getMessage();
|
131
|
129
|
throw new PluginException("Plugin " + filename + " failed to load. " + lastError, ex);
|