Last active
December 17, 2015 17:03
-
-
Save RX14/d23dc712562b64e1eaa8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| import org.apache.tools.ant.filters.ReplaceTokens | |
| if (!hasProperty("gradleDebug")) { | |
| ext.gradleDebug = "false" | |
| } | |
| task replaceTokens(type: Copy) { | |
| from 'src/main/java' | |
| into 'build/replacedSrc' | |
| filter(ReplaceTokens, tokens: [DEBUG: gradleDebug]) | |
| } | |
| compileJava.source = replaceTokens.destinationDir | |
| compileJava.dependsOn replaceTokens |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment