title: Generate Ant build file
body: <p>I have the following project structure:</p>
  
  <pre><code>root/
      comp/
          env/
             version/
                    build.xml
             build.xml
          build.xml
  </code></pre>
  
  <p>Where <strong>root/comp/env/version/build.xml</strong> is:</p>
  
  <pre><code>&lt;project name="comp-env-version" basedir="."&gt;
      &lt;import file="../build.xml" optional="true" /&gt;
      &lt;echo&gt;Comp Env Version tasks&lt;/echo&gt;
      &lt;target name="run"&gt;
          &lt;echo&gt;Comp Env Version run task&lt;/echo&gt;
      &lt;/target&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p><strong>root/comp/env/build.xml</strong> is:</p>
  
  <pre><code>&lt;project name="comp-env" basedir="."&gt;
      &lt;import file="../build.xml" optional="true" /&gt;
      &lt;echo&gt;Comp Env tasks&lt;/echo&gt;
      &lt;target name="run"&gt;
          &lt;echo&gt;Comp Env run task&lt;/echo&gt;
      &lt;/target&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p><strong>root/comp/build.xml</strong> is:</p>
  
  <pre><code>&lt;project name="comp" basedir="."&gt;
      &lt;echo&gt;Comp tasks&lt;/echo&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>Each build file imports the parent build file and each child <strong>inherits</strong> and <strong>overrides</strong> parent tasks/properties.</p>
  
  <p><strong>What I need is to get the generated build XML without run anything</strong>.</p>
  
  <p>For example, if I run "ant" (or something like that) on root/comp/env/version/, I would like to get the following output:</p>
  
  <pre><code>&lt;project name="comp-env-version" basedir="."&gt;
      &lt;echo&gt;Comp tasks&lt;/echo&gt;
      &lt;echo&gt;Comp Env tasks&lt;/echo&gt;
      &lt;echo&gt;Comp Env Version tasks&lt;/echo&gt;
      &lt;target name="run"&gt;
          &lt;echo&gt;Comp Env Version run task&lt;/echo&gt;
      &lt;/target&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>Is there an Ant plugin to do this? With Maven? What are my options if not?</p>
  
  <p><strong>EDIT:</strong>
  <strong>I need something like "mvn help:effective-pom" for Ant.</strong></p>