if (jar == null)
{
- log.log(Level.WARNING, "Unable to find plugin JAR in " + pluginPath + "/target/.");
+ File f = new File(targetFolder, "classes/");
+ if (!f.isDirectory())
+ {
+ log.log(Level.WARNING, "Unable to locate plugin JAR/class files for " + plugin);
+ return;
+ }
+
+ log.log(Level.FINE, "Using classes/ for plugin " + plugin);
+ try
+ {
+ this.addURL(f.toURI().toURL());
+ }
+ catch (MalformedURLException ex)
+ {
+ log.log(Level.WARNING, "Unable to add class URL for " + plugin + " [" + f.toURI() + "]", ex);
+ }
return;
}
else