title: Ant file copy not working with jdk 7
body: <p>We are noticing some weird behaviour with ant when we moved the jdk version from 1.6 to 1.7. In our ant file, we have a target which copies some files from one directory to another directory. This works fine as far as we are using jdk 1.6. But the moment we start this using jdk 7, it complains about read only permission</p>
  
  <p><code>Failed to copy /path/to/source/file.js to /path/to/destination/file.js due to can't write to read-only destination file /path/to/destination/file.js</code></p>
  
  <p>The ant  version is 1.8.2 and below is the ant target which is under question</p>
  
  <pre><code>&lt;target name="copyfiles"&gt;         
      &lt;mkdir dir="${env.TARGET_ROOT}/destination"/&gt;
      &lt;copy file="etc/file.js" todir="${env.TARGET_ROOT}/destination" overwrite="true" verbose="true"/&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>This code works fine with java_home = /usr/j2sdk1.6.0_45 but fails with java_home = j2sdk1.7.0_25_x86_64</p>
  
  <p>Any idea what is going wrong ? Is it 32 bit vs 64 bit problem ? Is there a difference in which jdk 6 and jdk 7 are consumed in ant ?</p>
  
  <p>Any help would be really appreciable </p>