ant结合findBugs,PMD,checkStyle

<?xml version="1.0" encoding="GBK"?>
<project>
        <!--checkstyle
    <target name="checkstyle">
            <taskdef resource="checkstyletask.properties"
                 classpath="lib/checkstyle-all-4.1.jar"/>
        <checkstyle config="config/erayt_checkstyle.xml">
            <fileset dir="${prjdir}" includes="**/*.java"/>
                        <formatter type="html" toFile="F:/findbugs.html"/>
        </checkstyle>
    </target>
-->
    
    <!--
        <path id="findbugs.prj.src">            
            <fileset dir="F:/MyEclipseWorkSpace/XPADS5.0/accountGold" includes="**/*.java"/>
        </path>        
        <path id="findbugs.prj.class">            
            <fileset dir="F:/MyEclipseWorkSpace/XPADS5.0/accountGold" includes="**/*.class"/>
        </path>        
        <path id="findbugs.prj.lib">            
            <fileset dir="F:/MyEclipseWorkSpace/XPADS5.0/accountGold" includes="**/*.jar"/>
        </path>        
-->
    <!--findbugs-->
            <path id="findbugs.classpath">            
                <fileset dir="D:\findbug\findbugs-2.0.1\lib" includes="**/*.jar"/>
            </path>        
    
        <target name="findbugs">
            <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpathref="findbugs.classpath"/>
            <findbugs home="D:\findbug\findbugs-2.0.1\lib" output="text" outputFile="d:\findbug\outfile\findbugs.txt" jvmargs="-Xmx512m">
                <sourcePath path="E:\workspace\eRmbfx_fob\src" />                 
                <class location="D:\apache-tomcat-6.0.36\webapps\ROOT\WEB-INF\classes\com" />
                <auxClasspath path="D:\apache-tomcat-6.0.36\webapps\ROOT\WEB-INF\lib" />
            </findbugs>
        </target>
        
        

            <!--checkpmd-->
            <!-- <path id="checkpmd.classpath">            
             <fileset dir="F:\MyEclipseWorkSpace\eraytCodeQC\tool\pmd\lib" includes="**/*.jar"/>
            </path>        
            <target name="checkpmd">      
                <taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask"
                        classpathref="checkpmd.classpath" />      
                <pmd rulesetfiles="F:/MyEclipseWorkSpace/eraytCodeQC/erayt_pmd_20121024.xml">
              <fileset dir="F:/MyEclipseWorkSpace/XPADS5.0/accountGold" includes="**/*.java"/>
                    <formatter type="html" toFile="F:\MyEclipseWorkSpace\eraytCodeQC\outfile\pmdGold.html"/>              
                </pmd>
            </target>  -->
    
</project>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值