Skip to content

Instantly share code, notes, and snippets.

@amrox
Created April 13, 2015 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amrox/5b43f46d8926f5f59b30 to your computer and use it in GitHub Desktop.
Save amrox/5b43f46d8926f5f59b30 to your computer and use it in GitHub Desktop.
gradle task
task abc (type:Exec) {
String clientDir = project.buildscript.sourceFile.getParent()
String version = new File("${clientDir}/Assets/Resources/version.txt").text
String buildDir = "${clientDir}/Build/${version}"
commandLine "/bin/customtool", "${buildDir}/artifact"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment