Created
November 26, 2012 09:18
-
-
Save Axxiss/4147349 to your computer and use it in GitHub Desktop.
Findbugs taskdef and target
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="findbugs" description="Generate the FindBugs XML report"> | |
| <fail | |
| message="findbugs.home is missing. Make sure to add it as an argument." | |
| unless="findbugs.home" | |
| /> | |
| <path id="findbugs.jar"> | |
| <pathelement path="${findbugs.home}/lib/findbugs-ant.jar"> | |
| </pathelement> | |
| </path> | |
| <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" | |
| classpathref="findbugs.jar" /> | |
| <echo>FINDBUGS_HOME = ${findbugs.home}</echo> | |
| <mkdir dir="reports" /> | |
| <findbugs home="${findbugs.home}" output="xml" | |
| outputFile="reports/findbugs.xml" excludeFilter="findbugs-exclude.xml"> | |
| <auxClasspath path="${android.jar}" /> | |
| <class location="${basedir}/bin/classes" /> | |
| <sourcePath path="${basedir}/src" /> | |
| <sourcePath path="${basedir}/tests" /> | |
| </findbugs> | |
| </target> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment