Browse Source

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
master
Conor MacNeill 23 years ago
parent
commit
22e6b3ce29
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      proposal/mutant/src/java/antlibs/system/code/org/apache/ant/antlib/system/Ant.java

+ 4
- 1
proposal/mutant/src/java/antlibs/system/code/org/apache/ant/antlib/system/Ant.java View File

@@ -84,7 +84,7 @@ public class Ant extends AntBase {
* *
* @param baseDir the base directory for the build * @param baseDir the base directory for the build
*/ */
public void setBaseDir(File baseDir) {
public void setDir(File baseDir) {
this.baseDir = baseDir; this.baseDir = baseDir;
} }


@@ -108,6 +108,9 @@ public class Ant extends AntBase {
} }
if (antFile == null) { if (antFile == null) {
antFile = new File(baseDir, "build.ant"); antFile = new File(baseDir, "build.ant");
if (!antFile.exists()) {
antFile = new File(baseDir, "build.xml");
}
} }


ComponentService componentService ComponentService componentService


Loading…
Cancel
Save