From 22e6b3ce29a6ea3d29d5ae406c169cdf36e3ab24 Mon Sep 17 00:00:00 2001 From: Conor MacNeill Date: Thu, 7 Feb 2002 09:59:59 +0000 Subject: [PATCH] Fix up some small problems in mutant's Ant task git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271199 13f79535-47bb-0310-9956-ffa450edef68 --- .../system/code/org/apache/ant/antlib/system/Ant.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/proposal/mutant/src/java/antlibs/system/code/org/apache/ant/antlib/system/Ant.java b/proposal/mutant/src/java/antlibs/system/code/org/apache/ant/antlib/system/Ant.java index 5a0739ef1..de1416436 100644 --- a/proposal/mutant/src/java/antlibs/system/code/org/apache/ant/antlib/system/Ant.java +++ b/proposal/mutant/src/java/antlibs/system/code/org/apache/ant/antlib/system/Ant.java @@ -84,7 +84,7 @@ public class Ant extends AntBase { * * @param baseDir the base directory for the build */ - public void setBaseDir(File baseDir) { + public void setDir(File baseDir) { this.baseDir = baseDir; } @@ -108,6 +108,9 @@ public class Ant extends AntBase { } if (antFile == null) { antFile = new File(baseDir, "build.ant"); + if (!antFile.exists()) { + antFile = new File(baseDir, "build.xml"); + } } ComponentService componentService