2019-12-10 16:43:42 +01:00
|
|
|
package com.wasteinformationserver.basicutils;
|
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.net.URL;
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
import java.util.Properties;
|
|
|
|
|
|
|
|
public class Info {
|
|
|
|
public static String version="0.0";
|
|
|
|
public static String builddate;
|
|
|
|
|
|
|
|
|
|
|
|
public static void init(){
|
|
|
|
Properties prop = new Properties();
|
|
|
|
try {
|
|
|
|
URL url = Info.class.getResource("/version.properties");
|
|
|
|
|
|
|
|
prop.load(url.openStream());
|
|
|
|
version=(String)prop.get("version");
|
2019-12-11 13:17:55 +01:00
|
|
|
builddate=(String)prop.get("buildtime");
|
2019-12-10 16:43:42 +01:00
|
|
|
} catch (IOException e) {
|
|
|
|
e.printStackTrace();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|