mirror of https://github.com/apache/openjpa.git
Changed REVISION_NUMBER to be a String, since Subversion revisions can be a string (e.g., "420667:451468M")
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@451470 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b198cb7305
commit
5eb55ee87a
|
@ -41,7 +41,7 @@ public class OpenJPAVersion {
|
|||
public static final int MINOR_RELEASE;
|
||||
public static final int PATCH_RELEASE;
|
||||
public static final String RELEASE_STATUS;
|
||||
public static final int REVISION_NUMBER;
|
||||
public static final String REVISION_NUMBER;
|
||||
|
||||
static {
|
||||
Package pack = OpenJPAVersion.class.getPackage();
|
||||
|
@ -73,7 +73,7 @@ public class OpenJPAVersion {
|
|||
patch = 0;
|
||||
}
|
||||
|
||||
int revision = 0;
|
||||
String revision = "";
|
||||
try {
|
||||
InputStream in = OpenJPAVersion.class.
|
||||
getResourceAsStream("/META-INF/revision.properties");
|
||||
|
@ -81,8 +81,7 @@ public class OpenJPAVersion {
|
|||
try {
|
||||
Properties props = new Properties();
|
||||
props.load(in);
|
||||
revision = Integer.parseInt
|
||||
(props.getProperty("revision.number"));
|
||||
revision = props.getProperty("revision.number");
|
||||
} finally {
|
||||
in.close();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue