failing to parse the version number shouldn't halt the system.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@31303 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2010-05-24 20:50:23 +00:00
1 parent f4311e4920
commit 0263abd568
1 file changed
+5 -1
+5 -1
View File
@@ -27,7 +27,11 @@ public class DNSMultiCast implements Closeable {
String rootURL = hudson.getRootUrl();
if (rootURL!=null)
props.put("url", rootURL);
props.put("version",Hudson.getVersion().toString());
try {
props.put("version",String.valueOf(Hudson.getVersion()));
} catch (IllegalArgumentException e) {
// failed to parse the version number
}
TcpSlaveAgentListener tal = hudson.getTcpSlaveAgentListener();
if (tal!=null)