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

--no commit message

--no commit message
上级 5752fb83
...@@ -21,8 +21,8 @@ public class Build extends BuildBase { ...@@ -21,8 +21,8 @@ public class Build extends BuildBase {
} }
public void all() { public void all() {
jar(); jar();
docs(); docs();
} }
public void clean() { public void clean() {
......
...@@ -154,8 +154,7 @@ public class BuildBase { ...@@ -154,8 +154,7 @@ public class BuildBase {
* @return the exit value * @return the exit value
*/ */
protected int execScript(String script, String args) { protected int execScript(String script, String args) {
int testLinux; return exec(script + (isWindows() ? ".bat " : " ") + args, null);
return exec(isWindows() ? ".bat" : ".sh" + " " + args, null);
} }
/** /**
...@@ -181,6 +180,7 @@ public class BuildBase { ...@@ -181,6 +180,7 @@ public class BuildBase {
} }
copy(p.getInputStream(), out); copy(p.getInputStream(), out);
copy(p.getErrorStream(), out); copy(p.getErrorStream(), out);
p.waitFor();
return p.exitValue(); return p.exitValue();
} catch (Exception e) { } catch (Exception e) {
throw new Error("Error: " + e, e); throw new Error("Error: " + e, e);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论