28 lines
570 B
Java
28 lines
570 B
Java
package config;
|
|
|
|
import java.io.FileInputStream;
|
|
import java.io.IOException;
|
|
import java.io.InputStream;
|
|
import java.util.Properties;
|
|
|
|
import com.amarsoft.are.ARE;
|
|
|
|
/**
|
|
* »ñȡϵͳ°æ±¾ºÅ
|
|
* @author wmzhu
|
|
* @date 2015Äê6ÔÂ24ÈÕ
|
|
*/
|
|
public class SysVersionConfig {
|
|
|
|
public static String getSystemVersion() throws IOException{
|
|
Properties proper = new Properties();
|
|
InputStream in = new FileInputStream(ARE.getProperty("APP_HOME")+"/etc/sysversion.properties");
|
|
if(in != null){
|
|
proper.load(in);
|
|
in.close();
|
|
}
|
|
return proper.getProperty("SysVersion");
|
|
}
|
|
|
|
}
|