【ant-ci】build_findbugs.xml 代码

前端之家收集整理的这篇文章主要介绍了【ant-ci】build_findbugs.xml 代码前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

http://code.google.com/p/nbfindbugs/source/browse/trunk/FindbugsTools/nbproject/findbugs/build_findbugs.xml?spec=svn9&r=9





      
      
      
       
        @H_404_192@ 
          
         @H_601_301@59 
        @H_407_404@ 
         
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
@L_404_27@
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
      
      
      
      
      
       
        @H_403_1406@ 
          
        @H_97_1502@ 
         
<?xml version="1.0" encoding"UTF-8"?>
<project name="市一EMR测试项目" default"all" basedir"../.." >
<property file"nbproject/findbugs/findbugs.properties"/>
<target depends"clean,findbugs">
<!-- TODO define script. See Help menu or http://ant.apache.org/ -->
</target>
"init">
<mkdir dir"${findbugs.destdir}" />
</target>
"clean" description"清理所有Findbugs检查结果">
<echo>清理所有Findbugs检查结果!</echo>
<delete />
</target>
<!-- findbugs task definition -->
<path id"findbugs.lib">
<fileset "${findbugs.home}/lib">
<include "findbugs-ant.jar"/>
</fileset>
</path>
<taskdef "findbugs" classname"edu.umd.cs.findbugs.anttask.FindBugsTask" />
"filterBugs" "edu.umd.cs.findbugs.anttask.FilterBugsTask">
<classpath refid"findbugs.lib" />
</taskdef>
"convertXmlToText" "edu.umd.cs.findbugs.anttask.ConvertXmlToTextTask">
/>
</taskdef>
"init" "用Findbugs检查代码错误.">
<echo>开始用Findbugs检查代码错误......</echo>
<findbugs home"${findbugs.home}"
output"xml"
outputFile"${findbugs.file}"
jvmargs"-Xmx1024m" >
<!--auxClasspath path="${basedir}/lib/Regex.jar" /-->
<sourcePath path"${findbugs.src}" />
<class location"${findbugs.class}" />
</findbugs>
<echo>Findbugs检查代码错误完成......</echo>
</target>
"build findbugs html" "将检查结果转换为Html.">
<echo>将Findbugs检查结果转换为Html......</echo>
"${findbugs.desthtmldir}" />
<convertXmlToText "${findbugs.home}"
longBugCodes"true"
input"${findbugs.file}"
"${findbugs.desthtmldir}html_result.html"
format"html">
</convertXmlToText>
<!--
<xslt in="${findbugs.file}" out="${findbugs.desthtmldir}html_result.html"
style="build/default.xsl">
<classpath path="${findbugs.home}lib/*.jar"/>
</xslt>
-->
</target>
"build findbugs excel" "将检查结果转换为Excel.">
"${findbugs.destexceldir}" />
<xslt in"${findbugs.file}" out"${findbugs.destexceldir}excel_result.xml"
extension".xml" style"build/Excel.xsl" >
</xslt>
</target>
<!-- 分析结果 -->
"filterBugs" >
<!--
<filterBugs home="${findbugs.home}" output="filterBugs.html" withmessages="true" >
<datafile name="${findbugs.file}"/>
</filterBugs>
-->
"${findbugs.home}"
"${findbugs.file}"
"${findbugs.desthtmldir}html_result2.html"
"html:fancy.xsl">
</convertXmlToText>
</target>
</project>

猜你在找的XML相关文章