()
| 730 | } |
| 731 | |
| 732 | public static Date getBuildDate() { |
| 733 | Date result = null; |
| 734 | Attributes attributes = getManifestAttributes(); |
| 735 | if (attributes != null) { |
| 736 | String dateString = attributes.getValue("Built-On"); |
| 737 | try { |
| 738 | result = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss") |
| 739 | .parse(dateString); |
| 740 | } catch (Throwable t) { |
| 741 | log.warn("Could not parse build timestamp: " + dateString); |
| 742 | } |
| 743 | } else { |
| 744 | log.warn("Could not find manifest attributes."); |
| 745 | } |
| 746 | return result; |
| 747 | } |
| 748 | |
| 749 | public static String getBuildId() { |
| 750 | Attributes attributes = getManifestAttributes(); |
no test coverage detected