KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > xpdl > Version


1 package org.enhydra.shark.xpdl;
2
3 import java.text.ParseException JavaDoc;
4 import java.text.SimpleDateFormat JavaDoc;
5 import java.util.ResourceBundle JavaDoc;
6
7 public class Version {
8
9    private static long version = 1116694850828L;
10
11    static {
12       try {
13          ResourceBundle JavaDoc rb = ResourceBundle.getBundle("org.enhydra.shark.xpdl.resources.version");
14          String JavaDoc u = rb.getString("udate");
15          SimpleDateFormat JavaDoc a = new SimpleDateFormat JavaDoc("yy/MM/dd HH:mm:ss");
16          version = a.parse(u).getTime();
17       } catch (ParseException JavaDoc e) {
18          e.printStackTrace();
19       }
20       System.err.println("version:"+version);
21    }
22
23    /**
24     * Returns the current version number
25     */

26    public static long getVersion() {
27       return version;
28    }
29
30 }
Popular Tags