提交 a3350379 编写于 作者: K kohsuke

simplified

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16229 71c3de6d-444a-0410-be80-ed276b4c234a
上级 6dd7f6df
......@@ -139,13 +139,11 @@ public class Ant extends Builder {
EnvVars env = build.getEnvironment();
AntInstallation ai = getAnt();
if (ai != null) {
ai = ai.forNode(Computer.currentComputer().getNode());
}
if(ai==null) {
args.add(launcher.isUnix() ? "ant" : "ant.bat");
} else {
ai = ai.forEnvironment(env);
ai = ai.forNode(Computer.currentComputer().getNode());
ai = ai.forEnvironment(env);
String exe = ai.getExecutable(launcher);
if (exe==null) {
listener.fatalError(Messages.Ant_ExecutableNotFound(ai.getName()));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册