diff --git a/docs/faq.html b/docs/faq.html index db66a77ab..f8185e162 100644 --- a/docs/faq.html +++ b/docs/faq.html @@ -1109,6 +1109,28 @@ while(<STDIN>) { <!ENTITY include SYSTEM "file:./header.xml"> ]> +
Starting with Ant 1.6, there is a new
+ <import>
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.
The example above would become:
++<?xml version="1.0"?> +<project name="test" default="test" basedir="."> + + <target name="setup"> + ... + </target> + + <import file="../common.xml"/> + + ... + +</project> ++
Unlike entity includes, <import>
will
+ let you use Ant properties in the file name.
How do I send an email with the result of my build
diff --git a/xdocs/faq.xml b/xdocs/faq.xml
index a23ea03cd..107447fa9 100644
--- a/xdocs/faq.xml
+++ b/xdocs/faq.xml
@@ -845,6 +845,31 @@ while( Starting with Ant 1.6, there is a new
+ The example above would become: Unlike entity includes, <import>
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.<import>
will
+ let you use Ant properties in the file name.