提交 436fd1f3 编写于 作者: K kohsuke

improved robustness.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1941 71c3de6d-444a-0410-be80-ed276b4c234a
上级 bf63784c
......@@ -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 "???";
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册