accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Medinets (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-755) Run findbugs
Date Sat, 08 Sep 2012 03:05:08 GMT

    [ https://issues.apache.org/jira/browse/ACCUMULO-755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13451232#comment-13451232
] 

David Medinets commented on ACCUMULO-755:
-----------------------------------------

I am using this Ant build script to run FindBugs. I was unable to get FindBugs working properly
with Maven.

{noformat}
<project name="accumulo" default="findbugs" basedir=".">
<description>
A build file to run findbugs. To install the Ant task, simply copy $FINDBUGS_HOME/lib/findbugs-ant.jar
into the lib subdirectory of your Ant installation. For example, I ran 'sudo cp findbugs-ant.jar
/usr/share/ant/lib'
</description>

  <property environment="env"/>

  <property name="src" location="src"/>
  <property name="build" location="target"/>

  <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask"/>

  <property name="findbugs.home" value="/usr/local/findbugs-2.0.1" />

  <target name="findbugs">
    <!-- jvmargs="-Xms512M -Xmx512M" -->
    <property name="repository" value="/home/accumulo/.m2/repository"/>
    <findbugs home="${findbugs.home}" output="html" outputFile="accumulo.findbugs.html"
>
      <auxClasspath>
        <!--fileset file="${basedir}/lib/junit-4.5.jar" /-->
        <pathElement location="${repository}/jline/jline/0.9.94/jline-0.9.94.jar" />
        <pathElement location="${repository}/org/apache/hadoop/zookeeper/3.3.1/zookeeper-3.3.1.jar"
/>
        <pathElement location="${repository}/org/apache/thrift/libthrift/0.8.0/libthrift-0.8.0.jar"
/>
        <pathElement location="${repository}/org/apache/hadoop/hadoop-core/0.20.205.0/hadoop-core-0.20.205.0.jar"
/>
        <pathElement location="${repository}/commons-cli/commons-cli/1.2/commons-cli-1.2.jar"
/>
        <pathElement location="${repository}/org/slf4j/slf4j-log4j12/1.4.3/slf4j-log4j12-1.4.3.jar"
/>
        <pathElement location="${repository}/org/slf4j/slf4j-api/1.4.3/slf4j-api-1.4.3.jar"
/>
        <pathElement location="${repository}/commons-collections/commons-collections/3.2/commons-collections-3.2.jar"
/>
        <pathElement location="${repository}/log4j/log4j/1.2.16/log4j-1.2.16.jar" />
        <pathElement location="${repository}/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar"
/>
        <pathElement location="${repository}/commons-codec/commons-codec/1.5/commons-codec-1.5.jar"
/>
        <pathElement location="${repository}/org/apache/commons/commons-jci-fam/1.0/commons-jci-fam-1.0.jar"
/>
        <pathElement location="${repository}/commons-lang/commons-lang/2.6/commons-lang-2.6.jar"
/>
        <pathElement location="lib/cloudtrace-1.5.0-SNAPSHOT.jar" />
        <pathElement location="lib/accumulo-fate-1.5.0-SNAPSHOT.jar" />
        <pathElement location="lib/accumulo-start-1.5.0-SNAPSHOT.jar" />
      </auxClasspath>
      <sourcePath>
        <pathElement location="${basedir}/core/src/main/java" />
      </sourcePath>
      <class location="${basedir}/lib/accumulo-core-1.5.0-SNAPSHOT.jar" />
    </findbugs>
  </target>

  <target name="init">
    <!-- Create the time stamp -->
    <tstamp/>
    <!-- Create the build directory structure used by compile -->
    <mkdir dir="${build}"/>
  </target>

</project>
{noformat}
                
> Run findbugs
> ------------
>
>                 Key: ACCUMULO-755
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-755
>             Project: Accumulo
>          Issue Type: Task
>            Reporter: Keith Turner
>            Assignee: Keith Turner
>            Priority: Critical
>             Fix For: 1.5.0
>
>
> Before the 1.5 release it would be good to run findbugs and analyze the output.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message