MCPcopy Create free account
hub / github.com/w3c/epubcheck / version

Method version

src/main/java/com/adobe/epubcheck/api/EpubCheck.java:56–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers 8

CLIStepsClass · 0.95
setParametersMethod · 0.95
processFileMethod · 0.95
createReportMethod · 0.95
displayHelpMethod · 0.95
displayVersionMethod · 0.95
NavCheckerClass · 0.45
validateFileMethod · 0.45

Calls 4

printlnMethod · 0.80
getPropertyMethod · 0.80
getMessageMethod · 0.65
closeMethod · 0.65

Tested by

no test coverage detected