提交 dc296f68 编写于 作者: K kohsuke

improved error handling

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11404 71c3de6d-444a-0410-be80-ed276b4c234a
上级 d876beff
......@@ -111,11 +111,12 @@ public class Ant extends Builder {
if(ai==null) {
args.add(launcher.isUnix() ? "ant" : "ant.bat");
} else {
if (!ai.getExists()) {
String exe = ai.getExecutable(launcher);
if (exe==null) {
listener.fatalError(Messages.Ant_ExecutableNotFound(ai.name));
return false;
}
args.add(ai.getExecutable(launcher));
args.add(exe);
}
FilePath buildFilePath = buildFilePath(proj.getModuleRoot());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册