Can i copy files outside a Gradle project using absolute file system path


(Rob Kuijpers) #1

Can i copy files outside a Gradle project using absolute file system path.


(Luke Daley) #2

Yes.


(Rob Kuijpers) #3

How? I use an ANT function but can it be done with the Gradle copy task?

task (deploy) {

doLast {

ant.copy(todir: '/tmp/test) {

fileset(dir: ‘fe/dist’)

}

}

}


(Luke Daley) #4

Yes, just use absolute paths.