Created
November 30, 2012 10:23
-
-
Save Axxiss/4174999 to your computer and use it in GitHub Desktop.
Checkstyle target definition
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
| <target name="checkstyle" | |
| description="Generates a report of code convention violations."> | |
| <fail | |
| message="checkstyle.home is missing. Make sure to add it as an argument." | |
| unless="checkstyle.home" /> | |
| <path id="checkstyle.path"> | |
| <fileset dir="${checkstyle.home}" includes="*.jar" /> | |
| </path> | |
| <taskdef resource="checkstyletask.properties" classpathref="checkstyle.path" /> | |
| <checkstyle config="android-checkstyle.xml"> | |
| <fileset dir="src" includes="**/*.java" /> | |
| <fileset dir="tests" includes="**/*.java" /> | |
| <formatter type="xml" toFile="reports/checkstyle.xml" /> | |
| </checkstyle> | |
| </target> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment