Created
January 12, 2017 12:44
-
-
Save rpau/7564c19eac9a7e58ef68417fa2a19108 to your computer and use it in GitHub Desktop.
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 pmd(type:Exec) { | |
workingDir '.' | |
ignoreExitValue = true | |
commandLine 'pmd', 'pmd', '-dir', '.', '-f', 'xml', '-rulesets', 'http://WALKMODHUBHOST/pmd/REPOID/master/ruleset.xml', '-encoding', 'UTF8' | |
standardOutput = new FileOutputStream("pmd.xml"); | |
} | |
task check(type:Exec) { | |
workingDir '.' | |
commandLine 'pmd-client', '-H', 'WALKMODHUBHOST', '-R', 'REPOID' | |
standardOutput = new org.apache.tools.ant.util.TeeOutputStream( new FileOutputStream("pmd.out2"), System.out); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment