I am going crazy about this. I have been on this for hours trying to googling out a way to copy a file outside of the gradle project. How do I copy a file with an absolute path outside of the gradle project? I have a Sync task I would like to do it in
into('/') {
if (project.hasProperty("myfilepath")) {
from(project.getProperty("myfilepath"), "$destinationDir/myNewFile")
}
}
My guess was to use from inside of into, but it seems I cannot get absolute path inside there.