Author: rareddy
Date: 2009-03-18 15:39:32 -0400 (Wed, 18 Mar 2009)
New Revision: 579
Modified:
trunk/common-core/src/main/java/com/metamatrix/common/util/ApplicationInfo.java
Log:
TEIID-426: Changed the names of the Driver to "Teiid" and also hooked the driver
versions to be derived from the ApplicationInfo object
Modified: trunk/common-core/src/main/java/com/metamatrix/common/util/ApplicationInfo.java
===================================================================
---
trunk/common-core/src/main/java/com/metamatrix/common/util/ApplicationInfo.java 2009-03-18
19:33:17 UTC (rev 578)
+++
trunk/common-core/src/main/java/com/metamatrix/common/util/ApplicationInfo.java 2009-03-18
19:39:32 UTC (rev 579)
@@ -69,9 +69,20 @@
}
public String getMajorReleaseNumber() {
- return getReleaseNumber().substring(0, getReleaseNumber().lastIndexOf('.'));
//$NON-NLS-1$
+ return getReleaseNumber().substring(0, getReleaseNumber().lastIndexOf('.'));
}
+ public int getMajorReleaseVersion() {
+ String version = getReleaseNumber().substring(0,
getReleaseNumber().indexOf('.'));
+ return Integer.parseInt(version);
+ }
+
+ public int getMinorReleaseVersion() {
+ int majorIndex = getReleaseNumber().indexOf('.');
+ String version = getReleaseNumber().substring(majorIndex+1,
getReleaseNumber().indexOf('.', majorIndex+1));
+ return Integer.parseInt(version);
+ }
+
public String getBuildNumber() {
return props.getProperty("build.number"); //$NON-NLS-1$
}
Show replies by date