apzl_leasing/src_app/config/SysVersionConfig.java
2018-06-03 22:26:41 +08:00

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");
}
}