升级版本

This commit is contained in:
zhouhao
2017-06-08 17:16:50 +08:00
parent 63d6cdbf18
commit da14b203b4
2 changed files with 9 additions and 2 deletions

View File

@@ -16,6 +16,8 @@
package org.hsweb.web.starter;
import java.io.Serializable;
public class SystemVersion extends Version {
private FrameworkVersion frameworkVersion = new FrameworkVersion();
@@ -72,7 +74,8 @@ public class SystemVersion extends Version {
}
}
class Version implements Comparable<Version> {
class Version implements Comparable<Version>, Serializable {
protected String name;
protected String comment;
protected String website;
@@ -81,6 +84,9 @@ class Version implements Comparable<Version> {
protected int revisionVersion = 0;
protected boolean snapshot = false;
public Version() {
}
public void setVersion(int major, int minor, int revision, boolean snapshot) {
this.majorVersion = major;
this.minorVersion = minor;
@@ -177,4 +183,5 @@ class Version implements Comparable<Version> {
.append(minorVersion).append(".")
.append(revisionVersion).append(snapshot ? ".SNAPSHOT" : "").toString();
}
}

View File

@@ -73,7 +73,7 @@
<aspectj.version>1.6.12</aspectj.version>
<hibernate.validator.version>5.1.1.Final</hibernate.validator.version>
<hsweb.ezorm.version>1.2-SNAPSHOT</hsweb.ezorm.version>
<hsweb.commons.version>1.0.2</hsweb.commons.version>
<hsweb.commons.version>1.0.3</hsweb.commons.version>
<hsweb.expands.version>1.0</hsweb.expands.version>
</properties>