@@ -90,8 +90,8 @@ public class PolyPluginManager extends DefaultPluginManager {
90
90
91
91
static {
92
92
final File jarFile = new File ( PolyPluginManager .class .getProtectionDomain ().getCodeSource ().getLocation ().getPath () );
93
+ File pluginsFolder = PolyphenyHomeDirManager .getInstance ().registerNewFolder ( "plugins" );
93
94
if ( jarFile .isFile () ) { // Run with JAR file
94
- File pluginsFolder = PolyphenyHomeDirManager .getInstance ().registerNewFolder ( "plugins" );
95
95
try {
96
96
final JarFile jar = new JarFile ( jarFile );
97
97
final Enumeration <JarEntry > entries = jar .entries ();
@@ -104,16 +104,14 @@ public class PolyPluginManager extends DefaultPluginManager {
104
104
}
105
105
jar .close ();
106
106
} catch ( Exception e ) {
107
- // Ignore
107
+ // ignore
108
108
}
109
- pluginManager = new PolyPluginManager ( Path .of ( pluginsFolder .getPath () ) );
110
- } else {
111
- pluginManager = new PolyPluginManager (
112
- Path .of ( PolyphenyHomeDirManager .getInstance ().registerNewFolder ( "plugins" ).getPath () ),
113
- Path .of ( "../build/plugins" ),
114
- Path .of ( "./build/plugins" ),
115
- Path .of ( "../../build/plugins" ) );
116
109
}
110
+ pluginManager = new PolyPluginManager (
111
+ Path .of ( PolyphenyHomeDirManager .getInstance ().registerNewFolder ( "plugins" ).getPath () ),
112
+ Path .of ( "../build/plugins" ),
113
+ Path .of ( "./build/plugins" ),
114
+ Path .of ( "../../build/plugins" ) );
117
115
}
118
116
119
117
@@ -156,7 +154,6 @@ public static void init( boolean resetPluginsOnStartup ) {
156
154
List <PluginWrapper > startedPlugins = pluginManager .getStartedPlugins ();
157
155
for ( PluginWrapper plugin : startedPlugins ) {
158
156
String pluginId = plugin .getDescriptor ().getPluginId ();
159
-
160
157
log .info ( String .format ( "Plugin '%s' added" , pluginId ) );
161
158
}
162
159
}
0 commit comments