Skip to content

Instantly share code, notes, and snippets.

@xconnecting
Last active October 13, 2015 05:27
Show Gist options
  • Save xconnecting/4146257 to your computer and use it in GitHub Desktop.
Save xconnecting/4146257 to your computer and use it in GitHub Desktop.
Gradle: Can't copy to project directory
// This task raises IOException
task copyToProjectDir(type: Copy) {
from 'test1/test1.txt'
into '.'
}
// Workaround using ant property
task copyToProjectDir1 << {
ant.copy(file: 'test1/test1.txt', todir: '.')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment