title: How to create a collection of file collections in gradle?
body: <p>I am working on moving an ant project to gradle project. I have a set of file collection where to be used in as input for several tasks. This is possible in ant with .</p>
  <pre><code>&lt;zipfileset id=&quot;zipfileset1&quot; src=&quot;C:/reporter/servlet/reporter.war&quot;&gt;
      &lt;include name=&quot;WEB-INF/classes/**/*.class&quot;/&gt;
      &lt;exclude name=&quot;WEB-INF/classes/**/*_jsp*.class&quot;/&gt;
  &lt;/zipfileset&gt;
  &lt;fileset id=&quot;fileset1&quot; dir=&quot;C:/lib&quot;&gt;
      &lt;include name=&quot;test*.jar&quot;/&gt;
  &lt;/fileset&gt;
  &lt;union id=&quot;resources.reports.lib&quot;&gt;
      &lt;fileset refid=&quot;fileset1&quot;/&gt;
      &lt;fileset id=&quot;fileset2&quot; dir=&quot;C:/adaptors/lib&quot;&gt;
          &lt;include name=&quot;com*.jar&quot;/&gt;
      &lt;/fileset&gt;
      &lt;zipfileset refid=&quot;zipfileset1&quot;/&gt;
  &lt;/union&gt;
  </code></pre>
  <p>Is there any method in gradle equivalent to &quot;union&quot; in ant.</p>