提交 4bf141d1 authored 作者: Thomas Mueller's avatar Thomas Mueller

The jarSmall build target no longer includes assertions (SysProperties.CHECK,…

The jarSmall build target no longer includes assertions (SysProperties.CHECK, CHECK2, system properties h2.check and h2.check2).
上级 4cf64778
...@@ -164,25 +164,25 @@ public class SysProperties { ...@@ -164,25 +164,25 @@ public class SysProperties {
* System property <code>h2.check</code> (default: true).<br /> * System property <code>h2.check</code> (default: true).<br />
* Assertions in the database engine. * Assertions in the database engine.
*/ */
/*## CHECK begin ## //## CHECK begin ##
public static final boolean CHECK = getBooleanSetting("h2.check", true); public static final boolean CHECK = getBooleanSetting("h2.check", true);
## CHECK end ##*/ //## CHECK end ##
//## NO_CHECK begin ## /*## NO_CHECK begin ##
public static final boolean CHECK = false; public static final boolean CHECK = false;
//## NO_CHECK end ## ## NO_CHECK end ##*/
/** /**
* System property <code>h2.check2</code> (default: true).<br /> * System property <code>h2.check2</code> (default: true).<br />
* Additional assertions in the database engine. * Additional assertions in the database engine.
*/ */
/*## CHECK begin ## //## CHECK begin ##
public static final boolean CHECK2 = getBooleanSetting("h2.check2", false); public static final boolean CHECK2 = getBooleanSetting("h2.check2", false);
## CHECK end ##*/ //## CHECK end ##
//## NO_CHECK begin ## /*## NO_CHECK begin ##
public static final boolean CHECK2 = false; public static final boolean CHECK2 = false;
//## NO_CHECK end ## ## NO_CHECK end ##*/
/** /**
* System property <code>h2.clientTraceDirectory</code> (default: * System property <code>h2.clientTraceDirectory</code> (default:
......
...@@ -120,12 +120,18 @@ public class Build extends BuildBase { ...@@ -120,12 +120,18 @@ public class Build extends BuildBase {
* Switch the source code to the current JDK. * Switch the source code to the current JDK.
*/ */
public void switchSource() { public void switchSource() {
switchSource(true);
}
private void switchSource(boolean enableCheck) {
try { try {
String version = System.getProperty("version"); String version = System.getProperty("version");
String check = enableCheck ? "+CHECK" : "-CHECK";
String noCheck = enableCheck ? "-NO_CHECK" : "+NO_CHECK";
if (version == null) { if (version == null) {
SwitchSource.main("-dir", "src", "-auto"); SwitchSource.main("-dir", "src", "-auto", check, noCheck);
} else { } else {
SwitchSource.main("-dir", "src", "-version", version); SwitchSource.main("-dir", "src", "-version", version, check, noCheck);
} }
if (System.getProperty("lucene") != null) { if (System.getProperty("lucene") != null) {
SwitchSource.main("-dir", "src", "-LUCENE2", "-LUCENE3", "+LUCENE" + getLuceneVersion()); SwitchSource.main("-dir", "src", "-LUCENE2", "-LUCENE3", "+LUCENE" + getLuceneVersion());
...@@ -136,7 +142,7 @@ public class Build extends BuildBase { ...@@ -136,7 +142,7 @@ public class Build extends BuildBase {
} }
private void compile(boolean debugInfo, boolean clientOnly, boolean basicResourcesOnly) { private void compile(boolean debugInfo, boolean clientOnly, boolean basicResourcesOnly) {
switchSource(); switchSource(debugInfo);
clean(); clean();
mkdir("temp"); mkdir("temp");
download(); download();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论