提交 abbd9d98 编写于 作者: K kohsuke

[FIXED HUDSON-2163] applied a patch to make the error diagnostics more robust.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11239 71c3de6d-444a-0410-be80-ed276b4c234a
上级 c8584b97
......@@ -121,6 +121,10 @@ public class Ant extends Builder {
String normalizedTarget = targets.replaceAll("[\t\r\n]+"," ");
AntInstallation ai = getAnt();
if (!ai.getExists()) {
listener.fatalError("Cannot find executable from the choosen Ant installation \"" + ai.name + "\"");
return false;
}
if(ai==null)
args.add(execName);
else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册