git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1204655 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -107,6 +107,8 @@ Fixed bugs: | |||||
| Other changes: | Other changes: | ||||
| -------------- | -------------- | ||||
| * -f/-file/-buildfile accepts a directory containing build.xml. | |||||
| * The <javacc>, <jjtree> and <jjdoc> now support a new maxmemory | * The <javacc>, <jjtree> and <jjdoc> now support a new maxmemory | ||||
| attribute. | attribute. | ||||
| Bugzilla Report 50513. | Bugzilla Report 50513. | ||||
| @@ -37,7 +37,8 @@ attribute of the <code><project></code> tag. | |||||
| To make Ant use | To make Ant use | ||||
| a build file other than <code>build.xml</code>, use the command-line | a build file other than <code>build.xml</code>, use the command-line | ||||
| option <nobr><code>-buildfile <i>file</i></code></nobr>, | option <nobr><code>-buildfile <i>file</i></code></nobr>, | ||||
| where <i>file</i> is the name of the build file you want to use.</p> | |||||
| where <i>file</i> is the name of the build file you want to use | |||||
| (or a directory containing a <code>build.xml</code> file).</p> | |||||
| If you use the <nobr><code>-find [<i>file</i>]</code></nobr> option, | If you use the <nobr><code>-find [<i>file</i>]</code></nobr> option, | ||||
| Ant will search for a build file first in the current directory, then in | Ant will search for a build file first in the current directory, then in | ||||
| the parent directory, and so on, until either a build file is found or the root | the parent directory, and so on, until either a build file is found or the root | ||||
| @@ -451,12 +451,14 @@ public class Main implements AntMain { | |||||
| throw new BuildException("Build failed"); | throw new BuildException("Build failed"); | ||||
| } | } | ||||
| // make sure it's not a directory (this falls into the ultra | |||||
| // paranoid lets check everything category | |||||
| if (buildFile.isDirectory()) { | if (buildFile.isDirectory()) { | ||||
| System.out.println("What? Buildfile: " + buildFile + " is a dir!"); | |||||
| throw new BuildException("Build failed"); | |||||
| File whatYouMeant = new File(buildFile, "build.xml"); | |||||
| if (whatYouMeant.isFile()) { | |||||
| buildFile = whatYouMeant; | |||||
| } else { | |||||
| System.out.println("What? Buildfile: " + buildFile + " is a dir!"); | |||||
| throw new BuildException("Build failed"); | |||||
| } | |||||
| } | } | ||||
| // Normalize buildFile for re-import detection | // Normalize buildFile for re-import detection | ||||