Using Gradle 0.8, I have the following file structure
source/
stuff/
file.txt
empty/
Who do I want to copy to create
target/
stuff/
file.txt
empty/
So, I tried this:
def sourceTree = fileTree(dir: 'source')
def targetDir = file(dir: 'target')
copy {
from sourceTree
into targetDir
}
But instead, I get:
target/
stuff/
file.txt
How to force empty directories?
source
share