|
|
@@ -1109,6 +1109,28 @@ while(<STDIN>) { |
|
|
|
<!ENTITY include SYSTEM "file:./header.xml"> |
|
|
|
]> |
|
|
|
</pre> |
|
|
|
<p>Starting with Ant 1.6, there is a new |
|
|
|
<code><import></code> task that can (also) be used to |
|
|
|
include build file fragments. Unlike the snippets used with |
|
|
|
entity includes, the referenced files have to be complete Ant |
|
|
|
build files, though.</p> |
|
|
|
<p>The example above would become:</p> |
|
|
|
<pre class="code"> |
|
|
|
<?xml version="1.0"?> |
|
|
|
<project name="test" default="test" basedir="."> |
|
|
|
|
|
|
|
<target name="setup"> |
|
|
|
... |
|
|
|
</target> |
|
|
|
|
|
|
|
<import file="../common.xml"/> |
|
|
|
|
|
|
|
... |
|
|
|
|
|
|
|
</project> |
|
|
|
</pre> |
|
|
|
<p>Unlike entity includes, <code><import></code> will |
|
|
|
let you use Ant properties in the file name.</p> |
|
|
|
<p class="faq"> |
|
|
|
<a name="mail-logger"></a> |
|
|
|
How do I send an email with the result of my build |
|
|
|