Skip to content

Instantly share code, notes, and snippets.

@Opalo
Created December 1, 2016 13:37
Show Gist options
  • Save Opalo/0ede391bdb3dddf066fd09b06cd25688 to your computer and use it in GitHub Desktop.
Save Opalo/0ede391bdb3dddf066fd09b06cd25688 to your computer and use it in GitHub Desktop.
task whatever(type: Exec) {
commandLine 'find', '.', '-iname', '*build*'
standardOutput = new ByteArrayOutputStream()
errorOutput = new ByteArrayOutputStream()
doLast {
println "std ${standardOutput.toString()}"
println "err ${errorOutput.toString()}"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment