bodewig 2003/10/13 06:18:08 Modified: docs faq.html xdocs faq.xml Log: Mention <import> in the FAQ Revision Changes Path 1.81 +22 -0 ant/docs/faq.html Index: faq.html =================================================================== RCS file: /home/cvs/ant/docs/faq.html,v retrieving revision 1.80 retrieving revision 1.81 diff -u -r1.80 -r1.81 --- faq.html 12 Oct 2003 19:39:52 -0000 1.80 +++ faq.html 13 Oct 2003 13:18:08 -0000 1.81 @@ -1109,6 +1109,28 @@ <!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 1.40 +25 -0 ant/xdocs/faq.xml Index: faq.xml =================================================================== RCS file: /home/cvs/ant/xdocs/faq.xml,v retrieving revision 1.39 retrieving revision 1.40 diff -u -r1.39 -r1.40 --- faq.xml 7 Oct 2003 14:28:25 -0000 1.39 +++ faq.xml 13 Oct 2003 13:18:08 -0000 1.40 @@ -845,6 +845,31 @@ <!ENTITY include SYSTEM "file:./header.xml"> ]> ]]></source> + + <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> + <source><![CDATA[ +<?xml version="1.0"?> +<project name="test" default="test" basedir="."> + + <target name="setup"> + ... + </target> + + <import file="../common.xml"/> + + ... + +</project> +]]></source> + + <p>Unlike entity includes, <code><import></code> will + let you use Ant properties in the file name.</p> </answer> </faq>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]