mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-06 00:25:58 +00:00
modified to display the plugin version number.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1939 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
76213767eb
commit
bf63784c7e
2 files changed
+37
-21
No files matched your search
@@ -270,6 +270,15 @@ public final class PluginWrapper {
|
||||
return shortName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the version number of this plugin
|
||||
*/
|
||||
public String getVersion() {
|
||||
String v = manifest.getMainAttributes().getValue("Plugin-Version");
|
||||
if(v!=null) return v;
|
||||
return "???";
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the "abc" portion from "abc.ext".
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user