Browse Source

Clarify docs, PR 33282

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

+ 3
- 3
docs/manual/CoreTasks/import.html View File

@@ -34,14 +34,14 @@ that are not possible with entity includes:
<h4>Target overriding</h4>

<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>,
that contains a &quot;<b>docs</b>&quot; target, I can redefine it in my main
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
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 &quot;<b>builddocs</b><b>.docs</b>&quot;.
This enables the new implementation to call the old target, thus
<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>

<hr>
<p align="center">Copyright &copy; 2003-2004 The Apache Software
<p align="center">Copyright &copy; 2003-2005 The Apache Software
Foundation. All rights
Reserved.</p>
</body>


Loading…
Cancel
Save