[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
This commit is contained in:
kohsuke committed 2008-08-06 01:18:34 +00:00
1 parent c8584b9760
commit abbd9d9827
1 file changed
+4
+4
View File
@@ -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