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