提交 8f3e0887 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 35f7b0fe
...@@ -396,6 +396,9 @@ public class BuildBase { ...@@ -396,6 +396,9 @@ public class BuildBase {
protected void java(String className, String[] args) { protected void java(String className, String[] args) {
out.println("Executing " + className); out.println("Executing " + className);
if (args == null) {
args = new String[0];
}
try { try {
Method main = Class.forName(className).getMethod("main", new Class[] { String[].class }); Method main = Class.forName(className).getMethod("main", new Class[] { String[].class });
main.invoke(null, new Object[] { args }); main.invoke(null, new Object[] { args });
......
...@@ -22,7 +22,7 @@ public class CheckTextFiles { ...@@ -22,7 +22,7 @@ public class CheckTextFiles {
} }
String[] suffixCheck = new String[] { "html", "jsp", "js", "css", "bat", "nsi", String[] suffixCheck = new String[] { "html", "jsp", "js", "css", "bat", "nsi",
"java", "txt", "properties", "sql", "xml", "csv", "Driver" }; "java", "txt", "properties", "sql", "xml", "csv", "Driver", "sh" };
String[] suffixIgnore = new String[] { "gif", "png", "odg", "ico", "sxd", String[] suffixIgnore = new String[] { "gif", "png", "odg", "ico", "sxd",
"layout", "res", "win", "jar", "task", "svg", "MF" }; "layout", "res", "win", "jar", "task", "svg", "MF" };
boolean failOnError; boolean failOnError;
...@@ -33,7 +33,7 @@ public class CheckTextFiles { ...@@ -33,7 +33,7 @@ public class CheckTextFiles {
// must contain "+" otherwise this here counts as well // must contain "+" otherwise this here counts as well
String copyrightLicense = "Copyright 2004-2008 H2 Group. " String copyrightLicense = "Copyright 2004-2008 H2 Group. "
+ "Licensed under the H2 License, Version 1.0"; + "Licensed under the H2 License, Version 1.0";
String[] suffixIgnoreLicense = new String[] { "bat", "nsi", "txt", "properties", "xml", "java.sql.Driver", "task" }; String[] suffixIgnoreLicense = new String[] { "bat", "nsi", "txt", "properties", "xml", "java.sql.Driver", "task", "sh" };
boolean hasError; boolean hasError;
void run() throws Exception { void run() throws Exception {
......
...@@ -33,7 +33,7 @@ public class SpellChecker { ...@@ -33,7 +33,7 @@ public class SpellChecker {
private boolean printDictionary = false; private boolean printDictionary = false;
private boolean addToDictionary; private boolean addToDictionary;
private static final String[] SUFFIX = new String[] { "html", "java", "sql", "txt", "xml", "jsp", "css", "bat", private static final String[] SUFFIX = new String[] { "html", "java", "sql", "txt", "xml", "jsp", "css", "bat",
"csv", "xml", "js", "Driver", "properties", "task", "MF", "" }; "csv", "xml", "js", "Driver", "properties", "task", "MF", "sh", "" };
private static final String[] IGNORE = new String[] { "dev", "nsi", "gif", "png", "odg", "ico", "sxd", "zip", private static final String[] IGNORE = new String[] { "dev", "nsi", "gif", "png", "odg", "ico", "sxd", "zip",
"bz2", "rc", "layout", "res", "dll", "jar", "svg" }; "bz2", "rc", "layout", "res", "dll", "jar", "svg" };
private static final String PREFIX_IGNORE = "abc"; private static final String PREFIX_IGNORE = "abc";
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论