title: ant multiple source directories with copied resources
body: <p>Consider minimal build.xml fragment which builds jar from sources and includes all non-java resources:</p>
  
  <pre><code>&lt;property name="src.dir" value="src" /&gt;
  
  &lt;target name="build"&gt;
      &lt;javac destdir="bin"&gt;
          &lt;src path="${src.dir}" /&gt;
      &lt;/javac&gt;
      &lt;copy includeemptydirs="false" todir="bin"&gt;
          &lt;fileset dir="${src.dir}"&gt;
              &lt;exclude name="**/*.java" /&gt;
          &lt;/fileset&gt;
      &lt;/copy&gt;
      &lt;jar destfile="dist/foo.jar" basedir="bin"/&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>Now imagine that I need to support a list of source directories:</p>
  
  <pre><code>&lt;property name="src.dirs" value="src;src-gen" /&gt;
  </code></pre>
  
  <p>How can i modify above script to make it happen ?
  <code>javac</code> will happily take list of directories but for copy I need to transform string into list of filesets with exclusions or find some other way.</p>