01: package org.enhydra.jawe;
02:
03: import java.text.SimpleDateFormat;
04: import java.util.ResourceBundle;
05:
06: public class BuildInfo {
07:
08: private static String version = "2.0";
09: private static String release = "1";
10: private static long buildNo = 1138194850828L;
11: private static String jreSuffix = "";
12:
13: static {
14: try {
15: ResourceBundle rb = ResourceBundle
16: .getBundle("org.enhydra.jawe.buildinfo");
17: version = rb.getString("version");
18: release = rb.getString("release");
19: jreSuffix = rb.getString("jresuff");
20: String bn = rb.getString("buildno");
21: SimpleDateFormat a = new SimpleDateFormat(
22: "yy/MM/dd HH:mm:ss");
23: buildNo = a.parse(bn).getTime();
24: } catch (Exception e) {
25: e.printStackTrace();
26: }
27: //System.err.println("version:"+version);
28: }
29:
30: public static long getBuildNo() {
31: return buildNo;
32: }
33:
34: public static String getVersion() {
35: return version;
36: }
37:
38: public static String getRelease() {
39: return release;
40: }
41:
42: public static String getJRESuffix() {
43: return jreSuffix;
44: }
45:
46: }
|