title: How to concatenate a line from multiple XML files to a single file in Gradle?
body: <p>I'm trying to migrate an ANT script to Gradle and I'm new to Gradle. I have an ANT script for concatenation as (basically takes all xml files &amp; filter out a line and concatenate to another file)</p>
  <pre><code>&lt;concat destfile=&quot;${testHome}/test-results-summary.txt.tmp&quot; append=&quot;true&quot;&gt;
          &lt;fileset dir=&quot;${testHome}&quot; includes=&quot;*.xml&quot;/&gt;
          &lt;filterchain&gt; &lt;linecontains&gt; &lt;contains value=&quot;&amp;lt;testsuite&quot;/&gt; &lt;/linecontains&gt; 
          &lt;/filterchain&gt;
  &lt;/concat&gt;
  </code></pre>
  <p>The XML files are results after running tests and I found that they are in build/test-results, But I'm unable to filter this particular line &amp; concatenate. Is there a concatenate functionality in Gradle which I can use here? Thanks.</p>