title: How can I echo a filename twice using 'FileSet' and 'PathConvert'?
body: <p>I have this simple Ant task that lists all '.png' files in a folder:</p>
  
  <pre><code>&lt;target name="listimages"&gt;
      &lt;!-- Assume files a A and B --&gt;
      &lt;fileset id="dist.contents" dir="${basedir}"&gt;
          &lt;include name="**/*.png"/&gt;
      &lt;/fileset&gt;
  
      &lt;pathconvert pathsep="${line.separator}"
                   property="prop.dist.contents" 
                   refid="dist.contents"&gt;
          &lt;mapper type="flatten" /&gt;
          &lt;map from="${basedir}" to=""/&gt;
      &lt;/pathconvert&gt;
      &lt;echo&gt;${prop.dist.contents}&lt;/echo&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>This prints</p>
  
  <pre><code>[echo] A.png
  [echo] B.png
  </code></pre>
  
  <p>But, what I want is for the filenames to appear <em>twice</em> on each line. </p>
  
  <pre><code>[echo] A.png,A.png
  [echo] B.png,B.png
  </code></pre>
  
  <p>How can I do that?</p>
  
  <p>(This question is a follow up to <a href="https://stackoverflow.com/questions/1456852/ant-commands-to-print-fileset-into-a-file-one-match-per-line">How can I print a fileset to a file, one file name per line?</a>)</p>