title: How to add all files in a fileset as an argument to the exec task?
body: <p>I'm trying to provide all *.cpp files in a folder to the c++ compiler through ant.  But I get no further than ant giving gpp a giant string <em>containing</em> all the files.  I tried to prove it by using a small test application:</p>
  
  <pre><code>int main( int argc, char**args ){
     for( --argc; argc != 0; --argc ) printf("arg[%d]: %s\n",argc,args[argc]);
  }
  </code></pre>
  
  <p>With the ant script like this:</p>
  
  <pre><code>    &lt;target name="cmdline"&gt;
              &lt;fileset id="fileset" dir="."&gt;
                      &lt;include name="*"/&gt;
              &lt;/fileset&gt;
              &lt;pathconvert refid="fileset" property="converted"/&gt;
              &lt;exec executable="a.exe"&gt;
                      &lt;arg value="${converted}"/&gt;
              &lt;/exec&gt;
      &lt;/target&gt;
  </code></pre>
  
  <p>My a.exe's output is this:</p>
  
  <blockquote>
    <p>[exec] arg[1]: .a.cpp.swp .build.xml.swp a.cpp a.exe build.xml</p>
  </blockquote>
  
  <p>Now here's the question: how do I provide all files in the fileset individually as an argument to the executable?</p>