Path manifestPath = pluginPath.resolve(Paths.get(classes,"/META-INF/MANIFEST.MF"));
log.debug("Lookup plugin descriptor in '{}'", manifestPath);
if (Files.notExists(manifestPath)) {
- throw new PluginException("Cannot find '" + manifestPath + "' path");
+ throw new PluginException("Cannot find '{}' path", manifestPath);
}
try (InputStream input = Files.newInputStream(manifestPath)) {
List<String> pluginsId = dependenciesGraph.reverseTopologicalSort();
if (pluginsId == null) {
- throw new PluginException("Cyclic dependencies !!!" + dependenciesGraph.toString());
+ throw new PluginException("Cyclic dependencies !!! {}", dependenciesGraph.toString());
}
log.debug("Plugins order: {}", pluginsId);
* Gets the path of the folder where plugins are installed
* @return Path of plugins root
*/
- public Path getPluginsRoot();
+ Path getPluginsRoot();
+
}
Path propertiesPath = pluginPath.resolve(Paths.get(propertiesFileName));
log.debug("Lookup plugin descriptor in '{}'", propertiesPath);
if (Files.notExists(propertiesPath)) {
- throw new PluginException("Cannot find '" + pluginPath + "' path");
+ throw new PluginException("Cannot find '{}' path", pluginPath);
}
Properties properties = new Properties();