Changeset 282


Ignore:
Timestamp:
12/08/11 17:43:55 (12 years ago)
Author:
sherbold
Message:
 
Location:
trunk/JavaCommons
Files:
18 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaCommons

    • Property svn:ignore
      •  

        old new  
        1616 
        1717inst 
         18 
         19findbugs 
  • trunk/JavaCommons/build.xml

    r281 r282  
    9595        <property name="JFCMonitor.jarname" value="jfcmonitor.jar" /> 
    9696        <property name="JFCMonitor.location" value="../JFCMonitor" /> 
    97         <path id="JFCMonitor.classpath" /> 
     97        <path id="JFCMonitor.classpath"> 
     98                <pathelement location="${build.location.jfcmonitor}" /> 
     99        </path> 
    98100 
    99101        <!-- Emma Configuration --> 
     
    130132        </path> 
    131133        <path id="EventBenchCoreJUnitExecute.classpath"> 
    132                         <pathelement location="${coverage.instrumented.eventbenchcore}" /> 
    133                         <path refid="EventBenchCoreJUnitCompile.classpath" /> 
    134                         <path refid="emma.classpath" /> 
    135                 </path> 
     134                <pathelement location="${coverage.instrumented.eventbenchcore}" /> 
     135                <path refid="EventBenchCoreJUnitCompile.classpath" /> 
     136                <path refid="emma.classpath" /> 
     137        </path> 
    136138 
    137139        <!-- JUnit Test JavaHelperLib Properties --> 
     
    151153        </path> 
    152154 
    153  
     155        <!-- FindBugs Properties --> 
     156        <property name="findbugs.results.location" value="findbugs" /> 
     157        <path id="findbugs.classpath"> 
     158                <pathelement location="lib-test/findbugs-ant.jar" /> 
     159        </path> 
     160        <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" 
     161                classpathref="findbugs.classpath" /> 
    154162 
    155163        <!-- Initialization Targets --> 
     
    198206                <mkdir dir="${coverage.location}" /> 
    199207        </target> 
     208        <target name="init.findbugs"> 
     209                <mkdir dir="${findbugs.results.location}" /> 
     210        </target> 
    200211 
    201212        <!-- Clean-up Targets --> 
     
    217228                <delete dir="${coverage.instrumented}" /> 
    218229        </target> 
    219         <target depends="clean.build,clean.dist,clean.javadoc,clean.junit" 
     230        <target name="clean.findbugs"> 
     231                <delete dir="${findbugs.results.location}" /> 
     232        </target> 
     233        <target depends="clean.build,clean.dist,clean.javadoc,clean.junit,clean.emma,clean.findbugs" 
    220234                name="clean.all" /> 
    221235 
     
    380394                        </test> 
    381395                        <jvmarg 
    382                                                         value="-Demma.coverage.out.file=${coverage.location}/eventbenchcore.emma" /> 
    383                                                 <jvmarg value="-Demma.coverage.out.merge=true" /> 
     396                                value="-Demma.coverage.out.file=${coverage.location}/eventbenchcore.emma" /> 
     397                        <jvmarg value="-Demma.coverage.out.merge=true" /> 
    384398                </junit> 
    385399        </target> 
     
    423437                </emma> 
    424438        </target> 
     439 
     440        <!-- FindBugs Targets --> 
     441        <target depends="dist" name="findbugs.javahelperlib"> 
     442                <mkdir dir="${findbugs.results.location}" /> 
     443                <findbugs home="lib-test" output="xml" 
     444                        outputFile="${findbugs.results.location}/findbugs-javahelperlib.xml"> 
     445                        <auxClasspath refid="JavaHelperLib.classpath" /> 
     446                        <sourcePath path="${JavaHelperLib.location}" /> 
     447                        <class location="${dist.location.main}/${JavaHelperLib.jarname}" /> 
     448                </findbugs> 
     449        </target> 
     450        <target depends="dist" name="findbugs.eventbenchcore"> 
     451                <mkdir dir="${findbugs.results.location}" /> 
     452                <findbugs home="lib-test" output="xml" 
     453                        outputFile="${findbugs.results.location}/findbugs-eventbenchcore.xml"> 
     454                        <auxClasspath refid="EventBenchCore.classpath" /> 
     455                        <sourcePath path="${EventBenchCore.location}" /> 
     456                        <class location="${dist.location.main}/${EventBenchCore.jarname}" /> 
     457                </findbugs> 
     458        </target> 
     459        <target depends="dist" name="findbugs.eventbenchconsole"> 
     460                <mkdir dir="${findbugs.results.location}" /> 
     461                <findbugs home="lib-test" output="xml" 
     462                        outputFile="${findbugs.results.location}/findbugs-eventbenchconsole.xml"> 
     463                        <auxClasspath refid="EventBenchConsole.classpath" /> 
     464                        <sourcePath path="${EventBenchConsole.location}" /> 
     465                        <class location="${dist.location.main}/${EventBenchConsole.jarname}" /> 
     466                </findbugs> 
     467        </target> 
     468        <target depends="dist" name="findbugs.jfcmonitor"> 
     469                <mkdir dir="${findbugs.results.location}" /> 
     470                <findbugs home="lib-test" output="xml" 
     471                        outputFile="${findbugs.results.location}/findbugs-jfcmonitor.xml"> 
     472                        <auxClasspath refid="JFCMonitor.classpath" /> 
     473                        <sourcePath path="${JFCMonitor.location}" /> 
     474                        <class location="${dist.location.jfcmonitor}/${JFCMonitor.jarname}" /> 
     475                </findbugs> 
     476        </target> 
     477        <target depends="findbugs.javahelperlib,findbugs.eventbenchcore,findbugs.eventbenchconsole,findbugs.jfcmonitor" name="findbugs" /> 
    425478</project> 
Note: See TracChangeset for help on using the changeset viewer.