Create a task to load all system plugins. @return The task to load plugins.
()
| 299 | * @return The task to load plugins. |
| 300 | */ |
| 301 | public static PCGenTask createLoadPluginTask() |
| 302 | { |
| 303 | String pluginsDir = ConfigurationSettings.getPluginsDir(); |
| 304 | PluginClassLoader loader = new PluginClassLoader(new File(pluginsDir)); |
| 305 | loader.addPluginLoader(TokenLibrary.getInstance()); |
| 306 | loader.addPluginLoader(TokenStore.inst()); |
| 307 | try |
| 308 | { |
| 309 | loader.addPluginLoader(PreParserFactory.getInstance()); |
| 310 | } |
| 311 | catch (PersistenceLayerException ex) |
| 312 | { |
| 313 | Logging.errorPrint("createLoadPluginTask failed", ex); |
| 314 | } |
| 315 | loader.addPluginLoader(PrerequisiteTestFactory.getInstance()); |
| 316 | loader.addPluginLoader(PrerequisiteWriterFactory.getInstance()); |
| 317 | loader.addPluginLoader(PJEP.getJepPluginLoader()); |
| 318 | loader.addPluginLoader(ExportHandler.getPluginLoader()); |
| 319 | loader.addPluginLoader(TokenConverter.getPluginLoader()); |
| 320 | loader.addPluginLoader(PluginManager.getInstance()); |
| 321 | loader.addPluginLoader(PluginFunctionLibrary.getInstance()); |
| 322 | return loader; |
| 323 | } |
| 324 | |
| 325 | private static boolean startupWithoutGUI() |
| 326 | { |