improved robustness.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1941 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-01-26 13:59:41 +00:00
1 parent bf63784c7e
commit 436fd1f3bd
1 file changed
+5
@@ -276,6 +276,11 @@ public final class PluginWrapper {
public String getVersion() {
String v = manifest.getMainAttributes().getValue("Plugin-Version");
if(v!=null) return v;
// plugins generated before maven-hpi-plugin 1.3 should still have this attribute
v = manifest.getMainAttributes().getValue("Implementation-Version");
if(v!=null) return v;
return "???";
}