Generate 3rd party dependency license report and make it visible from

the UI.

Also, for the core build, require that all the dependency licenses are
available.
This commit is contained in:
Kohsuke Kawaguchi committed 2011-04-15 14:55:43 -07:00
1 parent 2eae2b1cde
commit 0ae70779be
11 files changed
+286 -3

No files matched your search

@@ -397,6 +397,15 @@ public class PluginWrapper implements Comparable<PluginWrapper> {
return manifest.getMainAttributes().getValue("Plugin-Class");
}
public boolean hasLicensesXml() {
try {
new URL(baseResourceURL,"WEB-INF/licenses.xml").openStream().close();
return true;
} catch (IOException e) {
return false;
}
}
/**
* Makes sure that all the dependencies exist, and then accept optional dependencies
* as real dependencies.