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:
kohsuke committed 2007-01-26 13:55:26 +00:00
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".
*/