title: Gradle - Move a folder from ABC to XYZ
body: <p>Directory Structure:</p>
  
  <p>Project1/ABC/file1.txt</p>
  
  <p>I want the above ABC folder moved/renamed to XYZ (without leaving ABC there).</p>
  
  <p>How can I do this using Gradle. Seems like in Gradle: For a right hand person, it's itching your right ear using your left hand, taking it across top of your head.</p>
  
  <p>I have used the following example: but it doesn't do anything:</p>
  
  <pre><code>task renABCToXYZ(type: Copy) &lt;&lt; {
     copy {
        from "Project1"
        into "Project1"
        include 'ABC'
        rename ('ABC', 'XYZ')
     }
  }
  </code></pre>