Reputation: 10751
I have two gradle modules(A and B). Module B depends on module A.
Module A contains Copy
task from relative path:
task copyStrings(type: Copy){
from '../path/'
into 'folder'
}
tasks.preBuild.dependsOn('copyStrings')
When I execute ./gradlew assemble
from module A it works perfectly.
But when I am assembling module B, gradle can't found such directory, because relative path is made from module B directory.
Is there any way to set working directory for Copy
task?
Upvotes: 1
Views: 2380