01: package org.enhydra.shark.xpdl;
02:
03: import java.text.ParseException;
04: import java.text.SimpleDateFormat;
05: import java.util.ResourceBundle;
06:
07: public class Version {
08:
09: private static long version = 1138194850828L;
10:
11: static {
12: try {
13: ResourceBundle rb = ResourceBundle
14: .getBundle("org.enhydra.shark.xpdl.resources.version");
15: String u = rb.getString("udate");
16: SimpleDateFormat a = new SimpleDateFormat(
17: "yy/MM/dd HH:mm:ss");
18: version = a.parse(u).getTime();
19: } catch (ParseException e) {
20: e.printStackTrace();
21: }
22: //System.err.println("version:"+version);
23: }
24:
25: /**
26: * Returns the current version number
27: */
28: public static long getVersion() {
29: return version;
30: }
31:
32: }
|