diff options
author | Kevin Smith <git@kismith.co.uk> | 2012-10-17 19:06:51 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2012-10-18 10:06:47 (GMT) |
commit | afe789b14ca03734d8012c79ffee2992b59d5fbb (patch) | |
tree | 2f875edda100f2b55b011199f872c519826c5f34 /build.xml | |
parent | 459fcb740dc21da81e5434f3c0aa7fe532ffc442 (diff) | |
download | stroke-afe789b14ca03734d8012c79ffee2992b59d5fbb.zip stroke-afe789b14ca03734d8012c79ffee2992b59d5fbb.tar.bz2 |
Add findbugs and cobertura XML results.
Change-Id: Ic7adcf9790429c23b9493ec22324198bfc474b6f
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 22 |
1 files changed, 19 insertions, 3 deletions
@@ -110,7 +110,7 @@ <target name="coverage" if="cobertura-jar" depends="instrument, run-tests"> <delete dir="${coveragereport.dir}"/> <mkdir dir="${coveragereport.dir}"/> - <cobertura-report format="html" destdir="${coveragereport.dir}"> + <cobertura-report format="xml" destdir="${coveragereport.dir}"> <fileset dir="${src}"> <include name="**/*.java"/> </fileset> @@ -120,7 +120,23 @@ </cobertura-report> </target> - <target name="test" depends="compile-tests, instrument, run-tests, coverage"> + <target name="findbugs" if="findbugs.home" depends="dist"> + <path id="findbugs-jar"> + <pathelement path="${findbugs.home}/lib/findbugs-ant.jar" /> + </path> + <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpathref="findbugs-jar" /> + <findbugs home="${findbugs.home}" + output="xml" + outputFile="findbugs.xml" > + <auxClasspath> + <path refid="classpath" /> + </auxClasspath> + <sourcePath path="${src}" /> + <class location="${jar}" /> + </findbugs> + </target> + + <target name="test" depends="compile-tests, instrument, run-tests, coverage, findbugs"> </target> <target name="clean" @@ -137,7 +153,7 @@ <target name="javadoc" depends="init"> <!-- Note that this may stall if no network connection is available to the Oracle website --> - <javadoc packagenames="com.isode.**.**" + <javadoc packagenames="com.isode.**.**" sourcepath="${src}" destdir="${doc}" windowtitle="Stroke"> |