Changeset 5486


Ignore:
Timestamp:
09/21/09 08:38:30 (11 years ago)
Author:
melissa
Message:

Added findbugs target to root. This change is courtesy of Josh Moore.

Location:
trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r5482 r5486  
    456456      jar-ome-notes, jar-ome-editor" 
    457457    description="generate JAR files for LOCI software packages"/> 
     458 
     459  <target name="findbugs" 
     460    depends="findbugs-common, findbugs-ome-xml, 
     461      findbugs-jai, findbugs-poi-loci, findbugs-mdbtools, 
     462      findbugs-formats, findbugs-autogen, findbugs-bf-ice, 
     463      findbugs-loci-plugins, findbugs-ome-io, findbugs-ome-plugins, 
     464      findbugs-visbio, findbugs-slim, findbugs-flow, 
     465      findbugs-checks, findbugs-tests, 
     466      findbugs-jvmlink, findbugs-multi-lut, 
     467      findbugs-ome-notes, findbugs-ome-editor" 
     468    description="run findbugs on all componenets"> 
     469    <delete dir="${shared-artifact.dir}"/> 
     470    <delete dir="build"/> 
     471  </target> 
    458472 
    459473  <target name="clean" 
     
    513527  </target> 
    514528 
     529  <target name="findbugs-common" 
     530    description="run findbugs on LOCI common library"> 
     531    <ant dir="components/common" target="common.findbugs"/> 
     532  </target> 
     533 
    515534  <target name="clean-common" 
    516535    description="remove build files for LOCI common library"> 
     
    528547    description="generate JAR file for JAI Image I/O Tools library"> 
    529548    <ant dir="components/forks/jai" target="jai.jar"/> 
     549  </target> 
     550 
     551  <target name="findbugs-jai" 
     552    description="run findbugs on JAI Image I/O Tools library"> 
     553    <ant dir="components/forks/jai" target="jai.findbugs"/> 
    530554  </target> 
    531555 
     
    549573  </target> 
    550574 
     575  <target name="findbugs-poi-loci" 
     576    description="run findbugs on Apache POI library"> 
     577    <ant dir="components/forks/poi" target="poi-loci.findbugs"/> 
     578  </target> 
     579 
    551580  <target name="clean-poi-loci" 
    552581    depends="clean-common" 
     
    567596  </target> 
    568597 
     598  <target name="findbugs-mdbtools" 
     599    description="run findbugs on MDB Tools Java library"> 
     600    <ant dir="components/forks/mdbtools" target="mdbtools.findbugs"/> 
     601  </target> 
     602 
    569603  <target name="clean-mdbtools" 
    570604    description="remove build files for MDB Tools Java library"> 
     
    582616    description="generate JAR file for OME-XML Java library"> 
    583617    <ant dir="components/ome-xml" target="ome-xml.jar"/> 
     618  </target> 
     619 
     620  <target name="findbugs-ome-xml" 
     621    description="run findbugs on OME-XML Java library"> 
     622    <ant dir="components/ome-xml" target="ome-xml.findbugs"/> 
    584623  </target> 
    585624 
     
    603642  </target> 
    604643 
     644  <target name="findbugs-formats" 
     645    description="run findbugs on Bio-Formats"> 
     646    <ant dir="components/bio-formats" target="formats.findbugs"/> 
     647  </target> 
     648 
    605649  <target name="clean-formats" 
    606650    depends="clean-common, clean-ome-xml" 
     
    623667  </target> 
    624668 
     669  <target name="findbugs-autogen" 
     670    description="run findbugs on LOCI autogen"> 
     671    <ant dir="components/autogen" target="autogen.findbugs"/> 
     672  </target> 
     673 
    625674  <target name="clean-autogen" 
    626675    depends="clean-common, clean-formats" 
     
    643692  </target> 
    644693 
     694  <target name="findbugs-bf-ice" 
     695    description="run findbugs on Bio-Formats Ice framework"> 
     696    <ant dir="components/bf-ice" target="bf-ice.findbugs"/> 
     697  </target> 
     698 
    645699  <target name="clean-bf-ice" 
    646700    depends="clean-formats" 
     
    663717  </target> 
    664718 
     719  <target name="findbugs-loci-plugins" 
     720    description="run findbugs on LOCI Plugins for ImageJ"> 
     721    <ant dir="components/loci-plugins" target="loci-plugins.findbugs"/> 
     722  </target> 
     723 
    665724  <target name="clean-loci-plugins" 
    666725    depends="clean-common, clean-formats" 
     
    681740    description="generate JAR file for OME I/O"> 
    682741    <ant dir="components/ome-io" target="ome-io.jar"/> 
     742  </target> 
     743 
     744  <target name="findbugs-ome-io" 
     745    description="run findbugs on OME I/O"> 
     746    <ant dir="components/ome-io" target="ome-io.findbugs"/> 
    683747  </target> 
    684748 
     
    704768  </target> 
    705769 
     770  <target name="findbugs-ome-plugins" 
     771    description="run findbugs on OME Plugins for ImageJ"> 
     772    <ant dir="components/ome-plugins" target="ome-plugins.findbugs"/> 
     773  </target> 
     774 
    706775  <target name="clean-ome-plugins" 
    707776    depends="clean-common, clean-formats, clean-loci-plugins, clean-ome-io" 
     
    726795  </target> 
    727796 
     797  <target name="findbugs-visbio" 
     798    description="run findbugs on VisBio"> 
     799    <ant dir="components/visbio" target="visbio.findbugs"/> 
     800  </target> 
     801 
    728802  <target name="clean-visbio" 
    729803    depends="clean-common, clean-ome-xml, clean-formats, 
     
    777851  </target> 
    778852 
     853  <target name="findbugs-slim" 
     854    description="run findbugs on SLIM Plotter"> 
     855    <ant dir="components/slim-plotter" target="slim.findbugs"/> 
     856  </target> 
     857 
    779858  <target name="clean-slim" 
    780859    depends="clean-common, clean-formats, clean-visbio" 
     
    802881  </target> 
    803882 
     883  <target name="findbugs-flow" 
     884    description="run findbugs on WiscScan Flow Cytometry"> 
     885    <ant dir="components/flow-cytometry" target="flow.findbugs"/> 
     886  </target> 
     887 
    804888  <target name="clean-flow" 
    805889    depends="clean-formats" 
     
    825909  </target> 
    826910 
     911  <target name="findbugs-checks" 
     912    description="run findbugs on LOCI Checkstyle checks"> 
     913    <ant dir="components/checkstyle" target="checks.findbugs"/> 
     914  </target> 
     915 
    827916  <target name="clean-checks" 
    828917    description="remove build files for LOCI Checkstyle checks"> 
     
    844933  </target> 
    845934 
     935  <target name="findbugs-tests" 
     936    description="run findbugs on LOCI testing framework"> 
     937    <ant dir="components/test-suite" target="tests.findbugs"/> 
     938  </target> 
     939 
    846940  <target name="clean-tests" 
    847941    depends="clean-common, clean-formats" 
     
    864958  </target> 
    865959 
     960  <target name="findbugs-jvmlink" 
     961    description="run findbugs on JVMLink"> 
     962    <ant dir="components/legacy/jvmlink" target="jvmlink.findbugs"/> 
     963  </target> 
     964 
    866965  <target name="clean-jvmlink" 
    867966    depends="clean-common" 
     
    882981  </target> 
    883982 
     983  <target name="findbugs-multi-lut" 
     984    description="run findbugs on Multi LUT app"> 
     985    <ant dir="components/legacy/multi-lut" target="multi-lut.findbugs"/> 
     986  </target> 
     987 
    884988  <target name="clean-multi-lut" 
    885989    description="remove build files for Multi LUT app"> 
     
    9011005  </target> 
    9021006 
     1007  <target name="findbugs-ome-notes" 
     1008    description="run findbugs for OME Notes"> 
     1009    <ant dir="components/legacy/ome-notes" target="ome-notes.findbugs"/> 
     1010  </target> 
     1011 
    9031012  <target name="clean-ome-notes" 
    9041013    depends="clean-common, clean-formats" 
     
    9191028    description="generate JAR file for OME Metadata Editor"> 
    9201029    <ant dir="components/legacy/ome-editor" target="ome-editor.jar"/> 
     1030  </target> 
     1031 
     1032  <target name="findbugs-ome-editor" 
     1033    description="run findbugs on OME Metadata Editor"> 
     1034    <ant dir="components/legacy/ome-editor" target="ome-editor.findbugs"/> 
    9211035  </target> 
    9221036 
  • trunk/java.xml

    r5043 r5486  
    4343  </target> 
    4444 
    45   <target name="findbugs" depends="compile" 
     45  <target name="findbugs" depends="jar" 
    4646    description="check source code for bugs"> 
    4747    <if> 
     
    4949      <then> 
    5050        <findbugs home="${findbugs.home}" jvmargs="-Xmx512m" 
    51           output="xml" outputFile="${build.dir}/findbugs.xml"> 
     51          output="xml:withMessages" outputFile="${build.dir}/findbugs.xml" 
     52          excludeFilter="${root.dir}/excludebugs.xml"> 
    5253          <auxClasspath path="${component.classpath}"/> 
    5354          <sourcePath path="${dest.dir}"/> 
    5455          <class location="${classes.dir}"/> 
    5556        </findbugs> 
    56         <java jar="${findbugs.home}/findbugs.jar" fork="true"> 
    57           <arg value="${build.dir}/findbugs.xml"/> 
    58         </java> 
    5957      </then> 
    6058      <else> 
Note: See TracChangeset for help on using the changeset viewer.