From cc5030f493a1ba0d6668955e3371d09316c06134 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Mon, 13 Oct 2003 13:18:08 +0000 Subject: [PATCH] Mention in the FAQ git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275450 13f79535-47bb-0310-9956-ffa450edef68 --- docs/faq.html | 22 ++++++++++++++++++++++ xdocs/faq.xml | 25 +++++++++++++++++++++++++ 2 files changed, 47 insertions(+) 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 + <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:

+ + + + + ... + + + + + ... + + +]]> + +

Unlike entity includes, <import> will + let you use Ant properties in the file name.