mirror of https://github.com/apache/jmeter.git
Add findbugs-style task; move output to reports directory
git-svn-id: https://svn.apache.org/repos/asf/jakarta/jmeter/trunk@324406 13f79535-47bb-0310-9956-ffa450edef68
Former-commit-id: 6a79857433
This commit is contained in:
parent
565ebacb90
commit
043e2def26
16
build.xml
16
build.xml
|
|
@ -107,7 +107,8 @@
|
||||||
[The defaults are /findbugs and high]
|
[The defaults are /findbugs and high]
|
||||||
-->
|
-->
|
||||||
<property name="findbugs.home" value="/findbugs" />
|
<property name="findbugs.home" value="/findbugs" />
|
||||||
<property name="findbugs.level" value="high" />
|
<property name="findbugs.level" value="medium" />
|
||||||
|
<property name="findbugs.outName" value="reports/jmeter-fb" />
|
||||||
<target name="findbugs">
|
<target name="findbugs">
|
||||||
<taskdef name="findbugs"
|
<taskdef name="findbugs"
|
||||||
classpath="${findbugs.home}/lib/findbugs-ant.jar"
|
classpath="${findbugs.home}/lib/findbugs-ant.jar"
|
||||||
|
|
@ -116,7 +117,7 @@
|
||||||
output="xml"
|
output="xml"
|
||||||
reportlevel="${findbugs.level}"
|
reportlevel="${findbugs.level}"
|
||||||
excludeFilter="fb-excludes.xml"
|
excludeFilter="fb-excludes.xml"
|
||||||
outputFile="jmeter-fb.xml" >
|
outputFile="${findbugs.outName}.xml" >
|
||||||
<class location="${dest.jar}/*.jar" />
|
<class location="${dest.jar}/*.jar" />
|
||||||
<class location="${dest.jar.jmeter}/*.jar" />
|
<class location="${dest.jar.jmeter}/*.jar" />
|
||||||
<sourcePath path="${src.core}" />
|
<sourcePath path="${src.core}" />
|
||||||
|
|
@ -159,6 +160,17 @@
|
||||||
<auxClasspath path="${js.jar}" />
|
<auxClasspath path="${js.jar}" />
|
||||||
|
|
||||||
</findbugs>
|
</findbugs>
|
||||||
|
<antcall target="findbugs-style"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- Convert findbugs XML output to HTML -->
|
||||||
|
<target name="findbugs-style">
|
||||||
|
<xslt style="fb-csv.xsl"
|
||||||
|
force="true"
|
||||||
|
in="${findbugs.outName}.xml"
|
||||||
|
out="${findbugs.outName}.csv">
|
||||||
|
<param name="messagefile" expression="${findbugs.home}/plugin/messages.xml"/>
|
||||||
|
</xslt>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- Where the Sources live -->
|
<!-- Where the Sources live -->
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue