1 30 31 package com.genimen.djeneric.util; 32 33 import java.io.IOException ; 34 import java.util.Properties ; 35 36 public class DjVersion 37 { 38 public static String getVersion() 39 { 40 try 41 { 42 Properties props = new Properties (); 43 props.load(DjVersion.class.getResourceAsStream("/com/genimen/djeneric/version.properties")); 44 return props.getProperty("djeneric.major", "?") + "." + props.getProperty("djeneric.minor", "?") + "." 45 + props.getProperty("djeneric.release", "?"); 46 } 47 catch (IOException e) 48 { 49 DjLogger.log(e); 50 return "Error getting version"; 51 } 52 } 53 } | Popular Tags |