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