【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





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

猜你在找的XML相关文章