Browse Source

Minor improvements

pull/95/merge
Decebal Suiu 8 years ago
parent
commit
9d19554c99
  1. 2
      pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginDescriptorFinder.java
  2. 2
      pf4j/src/main/java/ro/fortsoft/pf4j/DependencyResolver.java
  3. 3
      pf4j/src/main/java/ro/fortsoft/pf4j/PluginManager.java
  4. 2
      pf4j/src/main/java/ro/fortsoft/pf4j/PropertiesPluginDescriptorFinder.java

2
pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginDescriptorFinder.java

@ -51,7 +51,7 @@ public class DefaultPluginDescriptorFinder extends ManifestPluginDescriptorFinde
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)) {

2
pf4j/src/main/java/ro/fortsoft/pf4j/DependencyResolver.java

@ -71,7 +71,7 @@ public class DependencyResolver {
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);

3
pf4j/src/main/java/ro/fortsoft/pf4j/PluginManager.java

@ -178,5 +178,6 @@ public interface PluginManager {
* Gets the path of the folder where plugins are installed
* @return Path of plugins root
*/
public Path getPluginsRoot();
Path getPluginsRoot();
}

2
pf4j/src/main/java/ro/fortsoft/pf4j/PropertiesPluginDescriptorFinder.java

@ -59,7 +59,7 @@ public class PropertiesPluginDescriptorFinder implements PluginDescriptorFinder
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();

Loading…
Cancel
Save