|
@@ -34,14 +34,14 @@ that are not possible with entity includes: |
|
|
<h4>Target overriding</h4> |
|
|
<h4>Target overriding</h4> |
|
|
|
|
|
|
|
|
<p>If a target in the main file is also present in at least one of the |
|
|
<p>If a target in the main file is also present in at least one of the |
|
|
imported files, it takes precedence.</p> |
|
|
|
|
|
|
|
|
imported files, the one from the main file takes precedence.</p> |
|
|
|
|
|
|
|
|
<p>So if I import for example a <i>docsbuild.xml</i> file named <b>builddocs</b>, |
|
|
<p>So if I import for example a <i>docsbuild.xml</i> file named <b>builddocs</b>, |
|
|
that contains a "<b>docs</b>" target, I can redefine it in my main |
|
|
that contains a "<b>docs</b>" target, I can redefine it in my main |
|
|
buildfile and that is the one that will be called. This makes it easy to |
|
|
buildfile and that is the one that will be called. This makes it easy to |
|
|
keep the same target name, so that the overriding target is still called |
|
|
keep the same target name, so that the overriding target is still called |
|
|
by any other targets--in either the main or imported buildfile(s)--for which |
|
|
by any other targets--in either the main or imported buildfile(s)--for which |
|
|
it is a dependency, with a different implementation. The original target is |
|
|
|
|
|
|
|
|
it is a dependency, with a different implementation. The target from <i>docsbuild.xml</i> is |
|
|
made available by the name "<b>builddocs</b><b>.docs</b>". |
|
|
made available by the name "<b>builddocs</b><b>.docs</b>". |
|
|
This enables the new implementation to call the old target, thus |
|
|
This enables the new implementation to call the old target, thus |
|
|
<i>enhancing</i> it with tasks called before or after it.</p> |
|
|
<i>enhancing</i> it with tasks called before or after it.</p> |
|
@@ -148,7 +148,7 @@ directory.</p> |
|
|
<p>Imports the project defined by the property deploy-platform</p> |
|
|
<p>Imports the project defined by the property deploy-platform</p> |
|
|
|
|
|
|
|
|
<hr> |
|
|
<hr> |
|
|
<p align="center">Copyright © 2003-2004 The Apache Software |
|
|
|
|
|
|
|
|
<p align="center">Copyright © 2003-2005 The Apache Software |
|
|
Foundation. All rights |
|
|
Foundation. All rights |
|
|
Reserved.</p> |
|
|
Reserved.</p> |
|
|
</body> |
|
|
</body> |
|
|