提交 d21076b1 authored 作者: Noel Grandin's avatar Noel Grandin

Issue #195: The new Maven uses a .cmd file instead of a .bat file

上级 4be1a5ce
......@@ -21,6 +21,8 @@ Change Log
<h2>Next Version (unreleased)</h2>
<ul>
<li>Issue #195: The new Maven uses a .cmd file instead of a .bat file
</li>
<li>Issue #212: EXPLAIN PLAN for UPDATE statement did not display LIMIT expression
</li>
<li>Support OFFSET without LIMIT in SELECT
......
......@@ -307,10 +307,18 @@ public class BuildBase {
*/
protected int execScript(String script, StringList args) {
if (isWindows()) {
script = script + ".bat";
}
// Under windows, we use the "cmd" command interpreter since it will search the path for us
// without us having to hardcode an extension for the script we want.
// (Sometimes we don't know if the extension will be .bat or .cmd)
StringList newArgs = new StringList();
newArgs.add("/C");
newArgs.add(script);
newArgs.addAll(args);
return exec("cmd", newArgs);
} else {
return exec(script, args);
}
}
/**
* Execute a program in a separate process.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论