提交 f90c7a7f authored 作者: christian.peter.io's avatar christian.peter.io

Unique vendor id

上级 22625ebc
......@@ -18,7 +18,8 @@ Change Log
<h1>Change Log</h1>
<h2>Next Version (unreleased)</h2>
<ul><li>-
<ul><li>Possibility to set a vendor id in Constants.java, so that unofficial builds are distinguishable
from official releases
</li></ul>
<h2>Version 1.1.119 (2009-09-26)</h2>
......
......@@ -21,6 +21,14 @@ public class Constants {
*/
public static final int BUILD_ID_STABLE = 118;
/**
* If H2 is compiled to be included in a product, this should be set to
* a unique vendor id (to distinguish from official releases).
* Additionally, a version number should be set to distinguish releases.
* Example: ACME_SVN1651_BUILD3
*/
public static final String BUILD_VENDOR_AND_VERSION = null;
/**
* The build date is updated for each public release.
*/
......@@ -44,17 +52,17 @@ public class Constants {
public static final int TCP_PROTOCOL_VERSION_6 = 6;
/**
* The major version of this product.
* The major version of this database.
*/
public static final int VERSION_MAJOR = 1;
/**
* The minor version of this product.
* The minor version of this database.
*/
public static final int VERSION_MINOR = 1;
/**
* The version number (major.minor) of this product.
* The version number (major.minor) of this database.
*/
public static final double VERSION = VERSION_MAJOR + VERSION_MINOR / 10.;
......@@ -494,7 +502,11 @@ public class Constants {
* @return the version number
*/
public static String getVersion() {
return VERSION_MAJOR + "." + VERSION_MINOR + "." + BUILD_ID;
String version = VERSION_MAJOR + "." + VERSION_MINOR + "." + BUILD_ID;
if (BUILD_VENDOR_AND_VERSION != null) {
version += "_" + BUILD_VENDOR_AND_VERSION;
}
return version;
}
/**
......
......@@ -613,4 +613,4 @@ modern slight boost characteristics significantly gae vfs centrally ten
approach risky getters suxxess gmb delegate delegating delegates collisions
linkage superfluous disallow scoop moebius inputs copilot dmoebius leod jenkov
jakob poker docware peter unstable measurable scramble reissued recreation
scrambling distinguish official
\ No newline at end of file
scrambling distinguish official unofficial distinguishable
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论