提交 a01642bb authored 作者: Thomas Mueller's avatar Thomas Mueller

The h2small.jar (created with build jarSmall) included the Android API. This has…

The h2small.jar (created with build jarSmall) included the Android API. This has been removed, shrinking the jar file by 21 KB.
上级 59e254f4
......@@ -351,6 +351,35 @@ public class Build extends BuildBase {
filter("src/installer/h2w.bat", "bin/h2w.bat", "h2.jar", "h2" + getJarSuffix());
}
/**
* Create the file h2android.jar. This only contains the embedded database,
* plus the H2 Andoid API. Debug information is disabled.
*/
public void jarAndroid() {
compile(false, false, true);
FileList files = files("temp").
exclude("temp/org/h2/bnf/*").
exclude("temp/org/h2/build/*").
exclude("temp/org/h2/dev/*").
exclude("temp/org/h2/fulltext/*").
exclude("temp/org/h2/jaqu/*").
exclude("temp/org/h2/java/*").
exclude("temp/org/h2/jdbcx/*").
exclude("temp/org/h2/jcr/*").
exclude("temp/org/h2/jmx/*").
exclude("temp/org/h2/mode/*").
exclude("temp/org/h2/samples/*").
exclude("temp/org/h2/server/*").
exclude("temp/org/h2/test/*").
exclude("temp/org/h2/tools/*").
exclude("*.bat").
exclude("*.sh").
exclude("*.txt");
files.add(new File("temp/org/h2/tools/DeleteDbFiles.class"));
files.add(new File("temp/org/h2/tools/CompressTool.class"));
jar("bin/h2android" + getJarSuffix(), files, "temp");
}
/**
* Create the h2client.jar. This only contains the remote JDBC
* implementation.
......@@ -382,19 +411,23 @@ public class Build extends BuildBase {
public void jarSmall() {
compile(false, false, true);
FileList files = files("temp").
exclude("temp/org/h2/bnf/*").
exclude("temp/android/*").
exclude("temp/org/h2/android/*").
exclude("temp/org/h2/build/*").
exclude("temp/org/h2/dev/*").
exclude("temp/org/h2/fulltext/*").
exclude("temp/org/h2/jcr/*").
exclude("temp/org/h2/jaqu/*").
exclude("temp/org/h2/java/*").
exclude("temp/org/h2/jdbcx/*").
exclude("temp/org/h2/jcr/*").
exclude("temp/org/h2/jmx/*").
exclude("temp/org/h2/mode/*").
exclude("temp/org/h2/samples/*").
exclude("temp/org/h2/server/*").
exclude("temp/org/h2/server/ftp/*").
exclude("temp/org/h2/test/*").
exclude("temp/org/h2/bnf/*").
exclude("temp/org/h2/fulltext/*").
exclude("temp/org/h2/jdbcx/*").
exclude("temp/org/h2/jmx/*").
exclude("temp/org/h2/server/*").
exclude("temp/org/h2/tools/*").
exclude("*.bat").
exclude("*.sh").
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论