bodewig 2003/10/13 06:20:01
Modified: docs Tag: ANT_16_BRANCH faq.html
xdocs Tag: ANT_16_BRANCH faq.xml
Log:
Merge from HEAD
Revision Changes Path
No revision
No revision
1.77.2.2 +22 -0 ant/docs/faq.html
Index: faq.html
===================================================================
RCS file: /home/cvs/ant/docs/faq.html,v
retrieving revision 1.77.2.1
retrieving revision 1.77.2.2
diff -u -r1.77.2.1 -r1.77.2.2
--- faq.html 7 Oct 2003 14:29:30 -0000 1.77.2.1
+++ faq.html 13 Oct 2003 13:20:01 -0000 1.77.2.2
@@ -1103,6 +1103,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
No revision
No revision
1.38.2.2 +25 -0 ant/xdocs/faq.xml
Index: faq.xml
===================================================================
RCS file: /home/cvs/ant/xdocs/faq.xml,v
retrieving revision 1.38.2.1
retrieving revision 1.38.2.2
diff -u -r1.38.2.1 -r1.38.2.2
--- faq.xml 7 Oct 2003 14:29:30 -0000 1.38.2.1
+++ faq.xml 13 Oct 2003 13:20:01 -0000 1.38.2.2
@@ -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]