To add version information to a Java Application.
In the main proejct create a class called setVersion as follows
In the constructor call setVersionInfo for the App and also register any libraires required.
- 
package xxx;
- 
- 
import metcarob.com.common.general.VersionInfo;
- 
- 
public class setVersion {
- 
- 
public static void setVersion() throws Exception {
- 
VersionInfo.setVersionInfo("AdminWebServ","**ArtifactID**");
- 
VersionInfo.getVersionInfo().registerLibrary(metcarob.com.common.setVersion.ver);
- 
}
- 
}
Call this class at the start of the main method:
- 
try {
- 
setVersion.setVersion();
- 
} catch (Exception e2) {
- 
e2.printStackTrace();
- 
return;
- 
}
- 
log.log(Level.INFO, " App Name:" + VersionInfo.getVersionInfo().toString());
RJM Article Type
              Work Notes
          