Created
April 13, 2015 22:00
-
-
Save amrox/5b43f46d8926f5f59b30 to your computer and use it in GitHub Desktop.
gradle task
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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