提交 0aa0c2be authored 作者: Thomas Mueller's avatar Thomas Mueller

Build: don't try to create the pdf file if OpenOffice is not installed.

上级 c7f23504
...@@ -306,8 +306,12 @@ public class Build extends BuildBase { ...@@ -306,8 +306,12 @@ public class Build extends BuildBase {
delete(files("bin").keep("*.jar")); delete(files("bin").keep("*.jar"));
jar(); jar();
docs(); docs();
exec("soffice", args("-invisible", "macro:///Standard.Module1.H2Pdf")); try {
copy("docs", files("../h2web/h2.pdf"), "../h2web"); exec("soffice", args("-invisible", "macro:///Standard.Module1.H2Pdf"));
copy("docs", files("../h2web/h2.pdf"), "../h2web");
} catch (Exception e) {
print("OpenOffice is not available: " + e);
}
delete("docs/html/onePage.html"); delete("docs/html/onePage.html");
FileList files = files("../h2").keep("../h2/build.*"); FileList files = files("../h2").keep("../h2/build.*");
files.addAll(files("../h2/bin").keep("../h2/bin/h2*")); files.addAll(files("../h2/bin").keep("../h2/bin/h2*"));
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论