title: How to `chmod -R +w` with Ant, files and folders?
body: <p>I'd like to do the equivalent of a <code>chmod -R +w foo/</code> in an <strong>Ant</strong> build script.</p>
  
  <p>So far I'm using this:</p>
  
  <pre><code>&lt;chmod perm="g+w"&gt;
     &lt;dirset dir="${basedir}/foo"&gt;
     &lt;/dirset&gt;
     &lt;fileset dir="${basedir}/foo"&gt;
     &lt;/fileset&gt;
  &lt;/chmod&gt;
  </code></pre>
  
  <p>Is there a neater way to write that to include files <em>and</em> folders <em>recursively</em>?</p>