ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: ant/xdocs faq.xml
Date Mon, 13 Oct 2003 13:18:08 GMT
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 @@
      &lt;!ENTITY include SYSTEM &quot;file:./header.xml&quot;&gt;
   ]&gt;
   </pre>
  +                        <p>Starting with Ant 1.6, there is a new
  +        <code>&lt;import&gt;</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">
  +&lt;?xml version=&quot;1.0&quot;?&gt;
  +&lt;project name=&quot;test&quot; default=&quot;test&quot; basedir=&quot;.&quot;&gt;
  +
  +  &lt;target name=&quot;setup&quot;&gt;
  +    ...
  +  &lt;/target&gt;
  +
  +  &lt;import file=&quot;../common.xml&quot;/&gt;
  +
  +  ...
  +
  +&lt;/project&gt;
  +</pre>
  +                        <p>Unlike entity includes, <code>&lt;import&gt;</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>&lt;import&gt;</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>&lt;import&gt;</code>
will
  +        let you use Ant properties in the file name.</p>
         </answer>
       </faq>
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message