[Japi-cvs] SF.net SVN: japi:[1330] common/trunk/commonBuild.xml
Status: Beta
Brought to you by:
christianhujer
From: <chr...@us...> - 2009-05-23 16:38:36
|
Revision: 1330 http://japi.svn.sourceforge.net/japi/?rev=1330&view=rev Author: christianhujer Date: 2009-05-23 16:38:35 +0000 (Sat, 23 May 2009) Log Message: ----------- Add findbugs. Modified Paths: -------------- common/trunk/commonBuild.xml Modified: common/trunk/commonBuild.xml =================================================================== --- common/trunk/commonBuild.xml 2009-05-23 16:36:55 UTC (rev 1329) +++ common/trunk/commonBuild.xml 2009-05-23 16:38:35 UTC (rev 1330) @@ -91,6 +91,7 @@ <available property="hasPack200" file="${commonPath}/antlib.auto/Pack200Task.jar" /> <available property="hasPmd" file="${commonPath}/antlib.auto/pmd-4.2.5.jar" /> <available property="hasTaglets" file="${commonPath}/antlib.auto/japi-lib-taglets.jar" /> +<available property="hasFindbugs" file="${commonPath}/antlib.auto/findbugs-1.3.8/lib/findbugs-ant.jar" /> <!-- targets are sorted alphabetically. --> @@ -538,3 +539,22 @@ </fileset> </pmd> </target> + +<target name="getFindbugs" unless="hasFindbugs"> + <mkdir dir="${commonPath}/antlib.auto" /> + <get src="http://downloads.sourceforge.net/findbugs/findbugs-1.3.8.tar.gz" dest="${commonPath}/antlib.auto/findbugs-1.3.8.tar.gz" usetimestamp="true" /> + <untar src="${commonPath}/antlib.auto/findbugs-1.3.8.tar.gz" dest="${commonPath}/antlib.auto" compression="gzip" /> +</target> + +<target name="findbugs" description="Performs quality checks using FindBugs." depends="compile,getFindbugs"> + <taskdef classpath="${commonPath}/antlib.auto/findbugs-1.3.8/lib/findbugs-ant.jar" name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" /> + <findbugs + home="${commonPath}/antlib.auto/findbugs-1.3.8/" + output="emacs" + reportLevel="low" + > + <sourcePath path="src/prj" /> + <class location="classes/production/${module.shortname}" /> + <auxClasspath refid="class.path" /> + </findbugs> +</target> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |