I have such hierarchy of directories in my project resources and i need to include all directories except that are named notadd
. Also, I need to do that without any exclude
.
a/
b/
|-->sub
| --> subsub1
| --> add
| --> notadd
| --> subsub2
| --> add
| --> notadd
d/
I have tried next:
- Printl appears but it just didn’t do any change in resources.
processResources {
from('b/sub'){
println 'aaaa'
include 'subsub1/add/**'
include 'subsub2/add/**'
}
}
- As s result, it copies only
add
categories(what i needed) but removes all other(a
andd
).
sourceSets {
main {
resources {
include 'b/sub/subsub1/add/**'
include 'b/sub/subsub2/add/**'
}
}
}