title: How do I make a fileset from a comma-separated list of directories in Ant?
body: <p>In an Ant target I get a property, containing the list of directories to be included in further action (copying, filtering, etc.). It looks like this:</p>
  
  <pre><code>directories=dir1, dir2, dir3
  </code></pre>
  
  <p>I need a way to convert this list to a fileset or patternset that selects <strong>all</strong> the files in these directories.</p>
  
  <p>I know I can use a script to generate pattern strings and then use it in the "include" or "exclude", but is there are a way to avoid scripts?</p>