Gradlew zip task: include only those files checked in SVN?
task myTask(type: Zip) {
from ("/path/to/my-project") {
// only files checked into SVN/git
}
}
Why not just call out known directories / files that shouldn't be committed? This will be gradle specific, but we're using gradle so that should be fine whether SVN or GIT is used:
task myTask( type: Zip ) {
from("${projectDir}/**/*") {
exclude "build/**/*", ".idea/**/*"
}
}