ServletLifecycle.getCurrentServletContext();
String appServerHome = servletContext.getRealPath("/");
File manifestFile = new File(appServerHome, "META-INF/MANIFEST.MF");
VersionInfo ver;
Attributes atts = null;
if (manifestFile.canRead()) {
Manifest mf = new Manifest();
final FileInputStream fis = new FileInputStream(manifestFile);
try {
mf.read(fis);
} finally {
fis.close();
}
atts = mf.getMainAttributes();
}
ver = VersionUtility.getVersionInfo(atts, ZanataInit.class);
this.applicationConfiguration.setVersion(ver.getVersionNo());
this.applicationConfiguration.setBuildTimestamp(ver.getBuildTimeStamp());
this.applicationConfiguration.setScmDescribe(ver.getScmDescribe());
logBanner(ver);
if (this.applicationConfiguration.isDebug()) {
log.info("debug: enabled");