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

The h2console.war can now be built using the Java build.

上级 7d80f3dc
...@@ -197,7 +197,7 @@ public class Build extends BuildBase { ...@@ -197,7 +197,7 @@ public class Build extends BuildBase {
copy("docs", getFiles("../h2web/h2.pdf"), "../h2web"); copy("docs", getFiles("../h2web/h2.pdf"), "../h2web");
delete("docs/html/onePage.html"); delete("docs/html/onePage.html");
FileList files = getFiles("../h2").keep("../h2/build.*"); FileList files = getFiles("../h2").keep("../h2/build.*");
files.addAll(getFiles("../h2/bin").keep("../h2/bin/h2.*")); files.addAll(getFiles("../h2/bin").keep("../h2/bin/h2*"));
files.addAll(getFiles("../h2/docs")); files.addAll(getFiles("../h2/docs"));
files.addAll(getFiles("../h2/service")); files.addAll(getFiles("../h2/service"));
files.addAll(getFiles("../h2/src")); files.addAll(getFiles("../h2/src"));
...@@ -405,4 +405,16 @@ public class Build extends BuildBase { ...@@ -405,4 +405,16 @@ public class Build extends BuildBase {
java("org.h2.build.doc.SpellChecker", null); java("org.h2.build.doc.SpellChecker", null);
} }
/**
* Build the h2console.war file.
*/
public void warConsole() {
jar();
copy("temp/WEB-INF", getFiles("src/tools/WEB-INF/web.xml"), "src/tools/WEB-INF");
copy("temp", getFiles("src/tools/WEB-INF/console.html"), "src/tools/WEB-INF");
copy("temp/WEB-INF/lib", getFiles("bin/h2" + getJarSuffix()), "bin");
FileList files = getFiles("temp").exclude("temp/org*").exclude("temp/META-INF*");
jar("bin/h2console.war", files, "temp");
}
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论