Browse Source

to be honest, there is yet another twist to basedir

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@689846 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 17 years ago
parent
commit
46520b1e01
1 changed files with 13 additions and 2 deletions
  1. +13
    -2
      docs/manual/CoreTasks/ant.html

+ 13
- 2
docs/manual/CoreTasks/ant.html View File

@@ -80,11 +80,14 @@ inside of targets.</p>
</tr> </tr>
<tr> <tr>
<td valign="top">dir</td> <td valign="top">dir</td>
<td valign="top">the directory to use as a basedir for the new Ant project.
<td valign="top">the directory to use as a basedir for the new Ant project.
Defaults to the current project's basedir, unless Defaults to the current project's basedir, unless
inheritall has been set to false, in which case it doesn't inheritall has been set to false, in which case it doesn't
have a default value. This will override the basedir have a default value. This will override the basedir
setting of the called project.</td>
setting of the called project.<br/>
Also serves as the directory to resolve the antfile and output
attribute's values (if any).
</td>
<td valign="top" align="center">No</td> <td valign="top" align="center">No</td>
</tr> </tr>
<tr> <tr>
@@ -275,6 +278,14 @@ targets so specified, in the order specified.</p>
<p>If you add even deeper levels of nesting, things get even more <p>If you add even deeper levels of nesting, things get even more
complicated and you need to apply the above table recursively.</p> complicated and you need to apply the above table recursively.</p>


<p>If the basedir of the outer most build has been specified as a
property on the command line (i.e. <code>-Dbasedir=some-value</code>
or a <code>-propertyfile</code> argument) the value provided will
get an even higher priority. For any <code>&lt;ant&gt;</code> task
that doesn't specify a dir attribute, the new project's basedir will
be the value specified on the command line - no matter how deeply
nested into layers of build files the task may be.</p>

<h3>Examples</h3> <h3>Examples</h3>
<blockquote><pre> <blockquote><pre>
&lt;ant antfile=&quot;subproject/subbuild.xml&quot; target=&quot;compile&quot;/&gt; &lt;ant antfile=&quot;subproject/subbuild.xml&quot; target=&quot;compile&quot;/&gt;


Loading…
Cancel
Save