Tuesday, December 17, 2013

Java : Property Usage

private static Properties properties=new Properties();

static {
try {
properties.load(new FileInputStream(EIBProperties.getInstallDir()
.concat("/Web/com/schneider/JE/Properties/JE.properties")));
installDir = properties.getProperty("com.je.installDir");
ValidationReq=properties.getProperty("com.je.isSAPValidationRequired");
} catch (Exception e) {
throw new RuntimeException(e);
}
}

1 comment: