mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-29 20:45:20 +00:00
hooking up the dynamic loading logic into the UI
This commit is contained in:
1 parent
f4474cc865
commit
c6d81ef2e2
9 files changed
+199
-24
No files matched your search
@@ -25,6 +25,7 @@
|
||||
package hudson;
|
||||
|
||||
import hudson.PluginManager.PluginInstanceStore;
|
||||
import jenkins.YesNoMaybe;
|
||||
import jenkins.model.Jenkins;
|
||||
import hudson.model.UpdateCenter;
|
||||
import hudson.model.UpdateSite;
|
||||
@@ -290,6 +291,15 @@ public class PluginWrapper implements Comparable<PluginWrapper> {
|
||||
return shortName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Does this plugin supports dynamic loading?
|
||||
*/
|
||||
public YesNoMaybe supportsDynamicLoad() {
|
||||
String v = manifest.getMainAttributes().getValue("Support-Dynamic-Loading");
|
||||
if (v==null) return YesNoMaybe.MAYBE;
|
||||
return Boolean.parseBoolean(v) ? YesNoMaybe.YES : YesNoMaybe.NO;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the version number of this plugin
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user