mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
[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:
1 parent
c8584b9760
commit
abbd9d9827
1 file changed
+4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user