Created
April 25, 2014 08:33
-
-
Save breskeby/11282169 to your computer and use it in GitHub Desktop.
log java compiler warnings with gradle
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
tasks.withType(JavaCompile){ | |
def warnLogFile = file("$buildDir/${name}Warnings.log") | |
logging.addStandardErrorListener(new StandardOutputListener(){ | |
void onOutput(CharSequence output){ | |
warnLogFile << output | |
} | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment