Skip to content

Instantly share code, notes, and snippets.

@imadi
Last active October 17, 2017 05:22
Show Gist options
  • Select an option

  • Save imadi/14f7ea748f75722374616644564e8ca5 to your computer and use it in GitHub Desktop.

Select an option

Save imadi/14f7ea748f75722374616644564e8ca5 to your computer and use it in GitHub Desktop.
Unzip only specific files without directories using AntBuilder
def builder = new AntBuilder()
builder.unzip(src: srcPath, dest: destPath) {
mapper(type: "flatten")
patternset() {
include(name: "**/*.mp3")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment