title: Gradle copy file from resources to assets on compilation
body: <p>I am looking for a way to copy src/main/res/values/* to /src/main/assets/www/xml/</p>
  
  <p>I would like this to happen on compile, so I've been trying to get gradle to do such a thing, but with no success.</p>
  
  <p>I appreciate any help with this :)</p>
  
  <p>I have added my current gradle file:</p>
  
  <pre><code>apply plugin: 'com.android.application'
  apply plugin: 'com.google.gms.google-services'
  
  android {
      compileSdkVersion 21
      buildToolsVersion '22.0.1'
  
      defaultConfig {
          applicationId "name"
          minSdkVersion 1
          targetSdkVersion 21
          versionCode 123
          versionName "123"
      }
  }
  
  dependencies {
      A huge bunch
  }
  </code></pre>
  
  <p>Based on the copy task given from Enrico I made this work:</p>
  
  <pre><code>task myCopy(type: Copy) {
      from 'src/main/res/values'
      into 'src/main/assets/www/xml'
  }
  
  project.afterEvaluate {
      prepareDebugDependencies.dependsOn myCopy
  }
  </code></pre>