title: How to get hold on the flattenmapper result in ant?
body: <p>Please, find below a few targets from my ant file:</p>
  
  <pre><code>&lt;fileset id="test-dep-jars" dir="o:/java"&gt;
      &lt;include name="junit-4.10.jar"/&gt;
      &lt;include name="easymock-3.1\easymock-3.1.jar"/&gt;
      &lt;include name="easymockclassextension-3.1\easymockclassextension-3.1.jar"/&gt;
  &lt;/fileset&gt;
  
  &lt;target name="copy-test-deps"&gt;
      &lt;mkdir dir="${deploy.dir}"/&gt;
      &lt;copy todir="${deploy.dir}"&gt;
          &lt;fileset refid="test-dep-jars"/&gt;
          &lt;flattenmapper/&gt;
      &lt;/copy&gt;
  &lt;/target&gt;
  
  &lt;target name="jar" depends="copy-test-deps"&gt;
      &lt;jar destfile="${deploy.dir}/test-${ant.project.name}.jar" basedir="${test.classes.dir}" 
           includes="**/*.class" filesetmanifest="skip"&gt;
          &lt;manifest&gt;
              &lt;attribute name="Class-Path"
                         value="${ant.project.name}.jar junit-4.10.jar easymock-3.1.jar easymockclassextension-3.1.jar"/&gt;
          &lt;/manifest&gt;
      &lt;/jar&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>My problem is that I have to state the test dependency jars twice - once when defining the test-dep-jars fileset and the second time when specifying the Class-Path manifest attribute of the produced jar.</p>
  
  <p>If I only could get hold on the flattenmapper result, then I would be able to use it in the Class-Path as is.</p>
  
  <p>How can I get hold on the flattenmapper result?</p>
  
  <p>Thanks.</p>