()
| 54 | final private Report report; |
| 55 | |
| 56 | public static String version() |
| 57 | { |
| 58 | if (VERSION == null) |
| 59 | { |
| 60 | Properties prop = new Properties(); |
| 61 | InputStream in = EpubCheck.class.getResourceAsStream("project.properties"); |
| 62 | try |
| 63 | { |
| 64 | prop.load(in); |
| 65 | } catch (Exception e) |
| 66 | { |
| 67 | System.err.println("Couldn't read project properties: " + e.getMessage()); |
| 68 | } finally |
| 69 | { |
| 70 | if (in != null) |
| 71 | { |
| 72 | try |
| 73 | { |
| 74 | in.close(); |
| 75 | } catch (IOException ignored) |
| 76 | { |
| 77 | } |
| 78 | } |
| 79 | } |
| 80 | VERSION = prop.getProperty("version"); |
| 81 | BUILD_DATE = prop.getProperty("buildDate"); |
| 82 | } |
| 83 | return VERSION; |
| 84 | } |
| 85 | |
| 86 | public static String buildDate() |
| 87 | { |
no test coverage detected