commit
e07b26c452
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
||||
# findbugs
|
||||
|
||||
#### Description
|
||||
A program which uses static analysis to look for bugs in java code.
|
||||
|
||||
#### Software Architecture
|
||||
Software architecture description
|
||||
|
||||
#### Installation
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Instructions
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Contribution
|
||||
|
||||
1. Fork the repository
|
||||
2. Create Feat_xxx branch
|
||||
3. Commit your code
|
||||
4. Create Pull Request
|
||||
|
||||
|
||||
#### Gitee Feature
|
||||
|
||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
37
README.md
37
README.md
@ -1,37 +0,0 @@
|
||||
# findbugs
|
||||
|
||||
#### 介绍
|
||||
A program which uses static analysis to look for bugs in java code.
|
||||
|
||||
#### 软件架构
|
||||
软件架构说明
|
||||
|
||||
|
||||
#### 安装教程
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 使用说明
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 参与贡献
|
||||
|
||||
1. Fork 本仓库
|
||||
2. 新建 Feat_xxx 分支
|
||||
3. 提交代码
|
||||
4. 新建 Pull Request
|
||||
|
||||
|
||||
#### 码云特技
|
||||
|
||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
||||
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
||||
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
||||
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
||||
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
148
annotations-3.0.0.pom
Normal file
148
annotations-3.0.0.pom
Normal file
@ -0,0 +1,148 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.google.code.findbugs</groupId>
|
||||
<artifactId>annotations</artifactId>
|
||||
<version>3.0.0</version>
|
||||
<packaging>jar</packaging>
|
||||
<url>http://findbugs.sourceforge.net/</url>
|
||||
<name>FindBugs-Annotations</name>
|
||||
<description>Annotation supports the FindBugs tool</description>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>GNU Lesser Public License</name>
|
||||
<url>http://www.gnu.org/licenses/lgpl.html</url>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
<scm>
|
||||
<connection>scm:git:https://code.google.com/p/findbugs/</connection>
|
||||
<developerConnection>scm:git:https://code.google.com/p/findbugs/</developerConnection>
|
||||
<url>https://code.google.com/p/findbugs/</url>
|
||||
</scm>
|
||||
|
||||
<developers>
|
||||
<developer>
|
||||
<id>bp</id>
|
||||
<name>Bill Pugh</name>
|
||||
<email>pugh at cs.umd.edu</email>
|
||||
<url>http://www.cs.umd.edu/~pugh/</url>
|
||||
<roles>
|
||||
<role>Project Lead</role>
|
||||
<role>Primary Developer</role>
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>al</id>
|
||||
<name>Andrey Loskutov</name>
|
||||
<email>Loskutov@gmx.de</email>
|
||||
<url>http://andrei.gmxhome.de/privat.html</url>
|
||||
<roles>
|
||||
<role>Eclipse plugin</role>
|
||||
</roles>
|
||||
<timezone>+1</timezone>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>bp</id>
|
||||
<name>Keith Lea</name>
|
||||
<email></email>
|
||||
<url>http://keithlea.com/</url>
|
||||
<roles>
|
||||
<role>web cloud</role>
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</developer>
|
||||
</developers>
|
||||
<contributors>
|
||||
<contributor>
|
||||
<name>Garvin LeClaire</name>
|
||||
<email>garvin.leclaire@gmail.com</email>
|
||||
<url></url>
|
||||
<roles>
|
||||
<role>Maven</role>
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>David H. Hovemeyer</name>
|
||||
<email>dhovemey@ycp.edu</email>
|
||||
<url>http://goose.ycp.edu/~dhovemey/</url>
|
||||
<roles>
|
||||
<role>project founder</role>
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Nay Ayewah</name>
|
||||
<email></email>
|
||||
<url></url>
|
||||
<roles>
|
||||
<role></role>
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Ben Langmead</name>
|
||||
<email></email>
|
||||
<url></url>
|
||||
<roles>
|
||||
<role></role>
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Tomas Pollak</name>
|
||||
<email></email>
|
||||
<url></url>
|
||||
<roles>
|
||||
<role>Eclipse plugin tests</role>
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Phil Crosby</name>
|
||||
<email></email>
|
||||
<url></url>
|
||||
<roles>
|
||||
<role></role>
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Peter Friese</name>
|
||||
<email></email>
|
||||
<url></url>
|
||||
<roles>
|
||||
<role>Eclipse plugin</role>
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Dave Brosius</name>
|
||||
<email></email>
|
||||
<url></url>
|
||||
<roles>
|
||||
<role></role>
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Brian Goetz</name>
|
||||
<email></email>
|
||||
<url></url>
|
||||
<roles>
|
||||
<role></role>
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Rohan Lloyd</name>
|
||||
<email></email>
|
||||
<url></url>
|
||||
<roles>
|
||||
<role></role>
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</contributor>
|
||||
</contributors>
|
||||
</project>
|
||||
BIN
findbugs-3.0.1-source.zip
Normal file
BIN
findbugs-3.0.1-source.zip
Normal file
Binary file not shown.
377
findbugs-3.0.1.pom
Normal file
377
findbugs-3.0.1.pom
Normal file
@ -0,0 +1,377 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.sonatype.oss</groupId>
|
||||
<artifactId>oss-parent</artifactId>
|
||||
<version>7</version>
|
||||
<relativePath />
|
||||
</parent>
|
||||
|
||||
<groupId>com.google.code.findbugs</groupId>
|
||||
<artifactId>findbugs</artifactId>
|
||||
<version>3.0.1</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<url>http://findbugs.sourceforge.net/</url>
|
||||
<name>FindBugs-Project</name>
|
||||
<description>Findbugs: Because it's easy!</description>
|
||||
<inceptionYear>2003</inceptionYear>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>GNU Lesser Public License</name>
|
||||
<url>http://www.gnu.org/licenses/lgpl.html</url>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
|
||||
<prerequisites>
|
||||
<maven>3.0</maven>
|
||||
</prerequisites>
|
||||
|
||||
|
||||
<scm>
|
||||
<connection>scm:git:http://code.google.com/p/findbugs/</connection>
|
||||
<developerConnection>scm:git:https://code.google.com/p/findbugs/</developerConnection>
|
||||
<url>https://code.google.com/p/findbugs/</url>
|
||||
</scm>
|
||||
|
||||
<developers>
|
||||
<developer>
|
||||
<id>bp</id>
|
||||
<name>Bill Pugh</name>
|
||||
<email>pugh at cs.umd.edu</email>
|
||||
<url>http://www.cs.umd.edu/~pugh/</url>
|
||||
<roles>
|
||||
<role>Project Lead</role>
|
||||
<role>Primary Developer</role>
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>al</id>
|
||||
<name>Andrey Loskutov</name>
|
||||
<email>Loskutov@gmx.de</email>
|
||||
<url>http://andrei.gmxhome.de/privat.html</url>
|
||||
<roles>
|
||||
<role>Eclipse plugin</role>
|
||||
</roles>
|
||||
<timezone>+1</timezone>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>bp</id>
|
||||
<name>Keith Lea</name>
|
||||
<email />
|
||||
<url>http://keithlea.com/</url>
|
||||
<roles>
|
||||
<role>web cloud</role>
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</developer>
|
||||
</developers>
|
||||
<contributors>
|
||||
<contributor>
|
||||
<name>Garvin LeClaire</name>
|
||||
<email>gleclaire@codehaus.org</email>
|
||||
<url>http://gdleclaire.blogspot.com</url>
|
||||
<roles>
|
||||
<role>Maven</role>
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>David H. Hovemeyer</name>
|
||||
<email>dhovemey@ycp.edu</email>
|
||||
<url>http://goose.ycp.edu/~dhovemey/</url>
|
||||
<roles>
|
||||
<role>project founder</role>
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Nay Ayewah</name>
|
||||
<email />
|
||||
<url />
|
||||
<roles>
|
||||
<role />
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Ben Langmead</name>
|
||||
<email />
|
||||
<url />
|
||||
<roles>
|
||||
<role />
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Tomas Pollak</name>
|
||||
<email />
|
||||
<url />
|
||||
<roles>
|
||||
<role>Eclipse plugin tests</role>
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Phil Crosby</name>
|
||||
<email />
|
||||
<url />
|
||||
<roles>
|
||||
<role />
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Peter Friese</name>
|
||||
<email />
|
||||
<url />
|
||||
<roles>
|
||||
<role>Eclipse plugin</role>
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Dave Brosius</name>
|
||||
<email />
|
||||
<url />
|
||||
<roles>
|
||||
<role />
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Brian Goetz</name>
|
||||
<email />
|
||||
<url />
|
||||
<roles>
|
||||
<role />
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Rohan Lloyd</name>
|
||||
<email />
|
||||
<url />
|
||||
<roles>
|
||||
<role />
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Tagir Valeev</name>
|
||||
<email>lany@ngs.ru</email>
|
||||
<url />
|
||||
<roles>
|
||||
<role />
|
||||
</roles>
|
||||
<timezone>+6</timezone>
|
||||
</contributor>
|
||||
</contributors>
|
||||
|
||||
<properties>
|
||||
<asmVersion>5.0.2</asmVersion>
|
||||
<junitVersion>4.11</junitVersion>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>net.jcip</groupId>
|
||||
<artifactId>jcip-annotations</artifactId>
|
||||
<version>1.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.code.findbugs</groupId>
|
||||
<artifactId>jsr305</artifactId>
|
||||
<version>2.0.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.code.findbugs</groupId>
|
||||
<artifactId>bcel-findbugs</artifactId>
|
||||
<version>6.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.code.findbugs</groupId>
|
||||
<artifactId>jFormatString</artifactId>
|
||||
<version>2.0.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>dom4j</groupId>
|
||||
<artifactId>dom4j</artifactId>
|
||||
<version>1.6.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.ant</groupId>
|
||||
<artifactId>ant</artifactId>
|
||||
<version>1.7.1</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm-debug-all</artifactId>
|
||||
<version>${asmVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm-commons</artifactId>
|
||||
<version>${asmVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-lang</groupId>
|
||||
<artifactId>commons-lang</artifactId>
|
||||
<version>2.6</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.apple</groupId>
|
||||
<artifactId>AppleJavaExtensions</artifactId>
|
||||
<version>1.4</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>${junitVersion}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>jaxen</groupId>
|
||||
<artifactId>jaxen</artifactId>
|
||||
<version>1.1.6</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<artifactId>icu4j</artifactId>
|
||||
<groupId>com.ibm.icu</groupId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<sourceDirectory>${basedir}/src/java</sourceDirectory>
|
||||
<testSourceDirectory>${basedir}/src/junit</testSourceDirectory>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>${basedir}/etc</directory>
|
||||
<includes>
|
||||
<include>*.xsd</include>
|
||||
<include>bugrank.txt</include>
|
||||
<include>findbugs.xml</include>
|
||||
<include>messages*.xml</include>
|
||||
</includes>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>${basedir}/src/xsl</directory>
|
||||
<includes>
|
||||
<include>*.xsl</include>
|
||||
</includes>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>${basedir}/src/antTask</directory>
|
||||
<includes>
|
||||
<include>**/*.xsl</include>
|
||||
<include>**/*.properties</include>
|
||||
<include>**/*.db</include>
|
||||
<include>**/*.png</include>
|
||||
<include>**/*.html</include>
|
||||
</includes>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>${basedir}/src/gui</directory>
|
||||
<includes>
|
||||
<include>**/*.xsl</include>
|
||||
<include>**/*.properties</include>
|
||||
<include>**/*.db</include>
|
||||
<include>**/*.png</include>
|
||||
<include>**/*.html</include>
|
||||
</includes>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>${basedir}/src/java</directory>
|
||||
<includes>
|
||||
<include>**/*.xsl</include>
|
||||
<include>**/*.properties</include>
|
||||
<include>**/*.db</include>
|
||||
<include>**/*.png</include>
|
||||
<include>**/*.html</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>build-helper-maven-plugin</artifactId>
|
||||
<version>1.9.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>generate-sources</phase>
|
||||
<goals><goal>add-source</goal></goals>
|
||||
<configuration>
|
||||
<sources>
|
||||
<source>src/antTask</source>
|
||||
<source>src/tools</source>
|
||||
<source>src/gui</source>
|
||||
</sources>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>2.9.1</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.0</version>
|
||||
<configuration>
|
||||
<source>1.7</source>
|
||||
<target>1.7</target>
|
||||
<excludes>
|
||||
<exclude>**/junit/**</exclude>
|
||||
<exclude>**/infonodeJava/**</exclude>
|
||||
<exclude>**/obsolete/**</exclude>
|
||||
</excludes>
|
||||
<testExcludes>
|
||||
<exclude>**/architecture/**</exclude>
|
||||
<exclude>**/cloud/**</exclude>
|
||||
<exclude>**/DetectorsTest.java</exclude>
|
||||
</testExcludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>2.4</version>
|
||||
<configuration>
|
||||
<archive>
|
||||
<manifestFile>${basedir}/etc/MANIFEST-findbugs.MF</manifestFile>
|
||||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>deploy</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-gpg-plugin</artifactId>
|
||||
<version>1.4</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>sign-artifacts</id>
|
||||
<phase>install</phase>
|
||||
<goals>
|
||||
<goal>sign</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
||||
3
findbugs-ant
Normal file
3
findbugs-ant
Normal file
@ -0,0 +1,3 @@
|
||||
findbugs ant/ant-findbugs apache-commons-lang dom4j findbugs-bcel jaxen
|
||||
jcip-annotations jFormatString jsr-305 junit objectweb-asm3/asm
|
||||
objectweb-asm3/asm-commons objectweb-asm3/asm-tree
|
||||
159
findbugs-ant-3.0.0.pom
Normal file
159
findbugs-ant-3.0.0.pom
Normal file
@ -0,0 +1,159 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.google.code.findbugs</groupId>
|
||||
<artifactId>findbugs-ant</artifactId>
|
||||
<version>3.0.0</version>
|
||||
<packaging>jar</packaging>
|
||||
<url>http://findbugs.sourceforge.net/</url>
|
||||
<name>FindBugs-AntTask</name>
|
||||
<description>AntTask to run Findbugs</description>
|
||||
|
||||
<licenses>
|
||||
<license>
|
||||
<name>GNU Lesser Public License</name>
|
||||
<url>http://www.gnu.org/licenses/lgpl.html</url>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
|
||||
<scm>
|
||||
<connection>scm:git:http://code.google.com/p/findbugs/</connection>
|
||||
<developerConnection>scm:git:https://code.google.com/p/findbugs/</developerConnection>
|
||||
<url>https://code.google.com/p/findbugs/</url>
|
||||
</scm>
|
||||
|
||||
<developers>
|
||||
<developer>
|
||||
<id>bp</id>
|
||||
<name>Bill Pugh</name>
|
||||
<email>pugh at cs.umd.edu</email>
|
||||
<url>http://www.cs.umd.edu/~pugh/</url>
|
||||
<roles>
|
||||
<role>Project Lead</role>
|
||||
<role>Primary Developer</role>
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>al</id>
|
||||
<name>Andrey Loskutov</name>
|
||||
<email>Loskutov@gmx.de</email>
|
||||
<url>http://andrei.gmxhome.de/privat.html</url>
|
||||
<roles>
|
||||
<role>Eclipse plugin</role>
|
||||
</roles>
|
||||
<timezone>+1</timezone>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>bp</id>
|
||||
<name>Keith Lea</name>
|
||||
<email></email>
|
||||
<url>http://keithlea.com/</url>
|
||||
<roles>
|
||||
<role>web cloud</role>
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</developer>
|
||||
</developers>
|
||||
<contributors>
|
||||
<contributor>
|
||||
<name>Garvin LeClaire</name>
|
||||
<email>garvin.leclaire@gmail.com</email>
|
||||
<url></url>
|
||||
<roles>
|
||||
<role>Maven</role>
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>David H. Hovemeyer</name>
|
||||
<email>dhovemey@ycp.edu</email>
|
||||
<url>http://goose.ycp.edu/~dhovemey/</url>
|
||||
<roles>
|
||||
<role>project founder</role>
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Nay Ayewah</name>
|
||||
<email></email>
|
||||
<url></url>
|
||||
<roles>
|
||||
<role></role>
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Ben Langmead</name>
|
||||
<email></email>
|
||||
<url></url>
|
||||
<roles>
|
||||
<role></role>
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Tomas Pollak</name>
|
||||
<email></email>
|
||||
<url></url>
|
||||
<roles>
|
||||
<role>Eclipse plugin tests</role>
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Phil Crosby</name>
|
||||
<email></email>
|
||||
<url></url>
|
||||
<roles>
|
||||
<role></role>
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Peter Friese</name>
|
||||
<email></email>
|
||||
<url></url>
|
||||
<roles>
|
||||
<role>Eclipse plugin</role>
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Dave Brosius</name>
|
||||
<email></email>
|
||||
<url></url>
|
||||
<roles>
|
||||
<role></role>
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Brian Goetz</name>
|
||||
<email></email>
|
||||
<url></url>
|
||||
<roles>
|
||||
<role></role>
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Rohan Lloyd</name>
|
||||
<email></email>
|
||||
<url></url>
|
||||
<roles>
|
||||
<role></role>
|
||||
</roles>
|
||||
<timezone>-5</timezone>
|
||||
</contributor>
|
||||
</contributors>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.google.code.findbugs</groupId>
|
||||
<artifactId>findbugs</artifactId>
|
||||
<version>3.0.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
102
findbugs-build.patch
Normal file
102
findbugs-build.patch
Normal file
@ -0,0 +1,102 @@
|
||||
diff --git a/build.xml b/build.xml
|
||||
index 698b91f..95a8789 100644
|
||||
--- a/build.xml
|
||||
+++ b/build.xml
|
||||
@@ -18,6 +18,7 @@
|
||||
<property file="build.properties" />
|
||||
|
||||
<property name="jar.dir" value="lib"/>
|
||||
+ <property name="systemjar.dir" value="/usr/share/java"/>
|
||||
<property name="plugin.dir" value="plugin"/>
|
||||
<property name="build.dir" value="build"/>
|
||||
<property name="junit.dir" value="build/junit"/>
|
||||
@@ -59,13 +60,24 @@
|
||||
<property name="version.props.file" value="${build.dir}/classes/edu/umd/cs/findbugs/version.properties"/>
|
||||
|
||||
<path id="findbugs.classpath">
|
||||
- <fileset dir="${jar.dir}" includes="*.jar"/>
|
||||
+ <pathelement location="${systemjar.dir}/ant.jar" />
|
||||
+ <pathelement location="${systemjar.dir}/objectweb-asm/asm-all.jar" />
|
||||
+ <pathelement location="${systemjar.dir}/findbugs-bcel.jar" />
|
||||
+ <pathelement location="${systemjar.dir}/apache-commons-lang.jar" />
|
||||
+ <pathelement location="${systemjar.dir}/dom4j.jar" />
|
||||
+ <pathelement location="${systemjar.dir}/jaxen.jar" />
|
||||
+ <pathelement location="${systemjar.dir}/jcip-annotations.jar" />
|
||||
+ <pathelement location="${systemjar.dir}/jdepend.jar" />
|
||||
+ <pathelement location="${systemjar.dir}/jFormatString.jar" />
|
||||
+ <pathelement location="${systemjar.dir}/jsr-305.jar" />
|
||||
+ <pathelement location="${systemjar.dir}/junit.jar" />
|
||||
+ <pathelement location="${systemjar.dir}/hamcrest/core.jar" />
|
||||
</path>
|
||||
|
||||
<path id="tools.classpath">
|
||||
<pathelement location="${classes.dir}"/>
|
||||
<pathelement location="${jar.dir}/findbugs.jar"/>
|
||||
- <pathelement location="${jar.dir}/jdepend-2.9.jar"/>
|
||||
+ <pathelement location="${systemjar.dir}/jdepend.jar"/>
|
||||
<path refid="findbugs.classpath"/>
|
||||
</path>
|
||||
|
||||
@@ -122,13 +134,6 @@
|
||||
</javac>
|
||||
</target>
|
||||
<target name="classes" depends="init">
|
||||
- <echo>Requires JDK 7.x (not 8!), using: ${ant.java.version}</echo>
|
||||
- <fail message="Requires JDK 7.x (not 8!), using: ${ant.java.version}">
|
||||
- <condition>
|
||||
- <equals arg1="1.8" arg2="${ant.java.version}"/>
|
||||
- </condition>
|
||||
- </fail>
|
||||
-
|
||||
<!-- Compile Java source files. -->
|
||||
<echo level="info" message="compiling findbugs"/>
|
||||
<javac
|
||||
@@ -298,8 +303,6 @@
|
||||
<fileset dir="${src.dir}">
|
||||
<include name="**/annotations/*.java"/>
|
||||
</fileset>
|
||||
- <zipfileset src="${jar.dir}/jcip-annotations.jar" excludes="META-INF/**,**/*.html"/>
|
||||
- <zipfileset src="${jar.dir}/jsr305.jar" excludes="META-INF/**,**/*.html"/>
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
@@ -634,25 +637,13 @@
|
||||
|
||||
<!-- Get version properties. -->
|
||||
|
||||
- <target name="-get-git-revision">
|
||||
- <exec executable="git" spawn="false" outputproperty="gitrnum">
|
||||
- <arg value="log"/>
|
||||
- <arg value="--pretty=format:%h"/>
|
||||
- <arg value="-n"/>
|
||||
- <arg value="1"/>
|
||||
- </exec>
|
||||
- <echo>Got git revision ${gitrnum}</echo>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="version" depends="classes,-get-git-revision" >
|
||||
- <echo>${gitrnum}</echo>
|
||||
+ <target name="version" depends="classes" >
|
||||
<java classpathref="tools.classpath"
|
||||
output="${version.props.file}"
|
||||
classname="edu.umd.cs.findbugs.Version"
|
||||
failonerror="true">
|
||||
<arg value="-props"/>
|
||||
- <sysproperty key="git.revision" value="${gitrnum}"/>
|
||||
+ <sysproperty key="git.revision" value="Unknown"/>
|
||||
</java>
|
||||
|
||||
<loadproperties srcfile="${version.props.file}"/>
|
||||
diff --git a/design/architecture/Makefile b/design/architecture/Makefile
|
||||
index 8765025..0fc7869 100644
|
||||
--- a/design/architecture/Makefile
|
||||
+++ b/design/architecture/Makefile
|
||||
@@ -4,6 +4,7 @@ PDFS = $(TEX_SRCS:.tex=.pdf)
|
||||
%.pdf : %.tex
|
||||
pdflatex $*
|
||||
pdflatex $*
|
||||
+ pdflatex $*
|
||||
|
||||
all : $(PDFS)
|
||||
|
||||
25
findbugs-dom4j.patch
Normal file
25
findbugs-dom4j.patch
Normal file
@ -0,0 +1,25 @@
|
||||
From 5a337b7fd291f42802ffe001408436df0a6318ce Mon Sep 17 00:00:00 2001
|
||||
From: Michael Simacek <msimacek@redhat.com>
|
||||
Date: Fri, 31 Mar 2017 12:28:29 +0200
|
||||
Subject: [PATCH] Port to dom4j 2.0
|
||||
|
||||
---
|
||||
src/java/edu/umd/cs/findbugs/xml/XMLUtil.java | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/java/edu/umd/cs/findbugs/xml/XMLUtil.java b/src/java/edu/umd/cs/findbugs/xml/XMLUtil.java
|
||||
index 0fa40f9..0baead5 100644
|
||||
--- a/src/java/edu/umd/cs/findbugs/xml/XMLUtil.java
|
||||
+++ b/src/java/edu/umd/cs/findbugs/xml/XMLUtil.java
|
||||
@@ -30,7 +30,7 @@ public class XMLUtil {
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public static <T> List<T> selectNodes(Node node, String arg0) {
|
||||
- return node.selectNodes(arg0);
|
||||
+ return (List) node.selectNodes(arg0);
|
||||
}
|
||||
|
||||
}
|
||||
--
|
||||
2.9.3
|
||||
|
||||
49
findbugs-manual.patch
Normal file
49
findbugs-manual.patch
Normal file
@ -0,0 +1,49 @@
|
||||
diff --git a/build.properties b/build.properties
|
||||
index 27f21f8..82f65b1 100644
|
||||
--- a/build.properties
|
||||
+++ b/build.properties
|
||||
@@ -11,7 +11,7 @@ source.findbugs.jar = src/java/,\
|
||||
# Set this to the directory containing the DocBook Modular XSL Stylesheets
|
||||
# from http://docbook.sourceforge.net/projects/xsl/
|
||||
|
||||
-xsl.stylesheet.home =${local.software.home}/docbook-xsl-1.76.1
|
||||
+xsl.stylesheet.home =/usr/share/sgml/docbook/xsl-stylesheets
|
||||
|
||||
# Set this to the directory containing the svnant Ant jars. These are
|
||||
# needed for the srcdist target and to get the svn revision number
|
||||
diff --git a/build.xml b/build.xml
|
||||
index 95a8789..0f48456 100644
|
||||
--- a/build.xml
|
||||
+++ b/build.xml
|
||||
@@ -856,24 +856,16 @@
|
||||
-->
|
||||
<target name="generatemanual" unless="manual.uptodate">
|
||||
<echo>Generating HTML version of manual</echo>
|
||||
- <echo>Running saxon: ${saxon.home}/saxon.jar</echo>
|
||||
- <java fork="true" dir="${docoutput.dir}" failonerror="true" classname="com.icl.saxon.StyleSheet" >
|
||||
- <classpath>
|
||||
- <pathelement location="${saxon.home}/saxon.jar"/>
|
||||
- <pathelement path="${java.class.path}"/>
|
||||
- </classpath>
|
||||
- <arg value="manual.xml" />
|
||||
+ <echo>Running xsltproc</echo>
|
||||
+ <exec dir="${docoutput.dir}" failonerror="true" executable="xsltproc">
|
||||
<arg value="manual.xsl" />
|
||||
- </java>
|
||||
+ <arg value="manual.xml" />
|
||||
+ </exec>
|
||||
|
||||
- <java fork="true" dir="${docoutput.dir}/ja" failonerror="true" classname="com.icl.saxon.StyleSheet" >
|
||||
- <classpath>
|
||||
- <pathelement location="${saxon.home}/saxon.jar"/>
|
||||
- <pathelement path="${java.class.path}"/>
|
||||
- </classpath>
|
||||
- <arg value="../manual_ja.xml" />
|
||||
+ <exec dir="${docoutput.dir}/ja" failonerror="true" executable="xsltproc">
|
||||
<arg value="../manual.xsl" />
|
||||
- </java>
|
||||
+ <arg value="../manual_ja.xml" />
|
||||
+ </exec>
|
||||
</target>
|
||||
|
||||
<!--
|
||||
16
findbugs-tools-README
Normal file
16
findbugs-tools-README
Normal file
@ -0,0 +1,16 @@
|
||||
This package contains additional tools for use with findbugs. They include:
|
||||
* edu.umd.cs.findbugs.tools.FixIndentation <file>: reindents a Java file
|
||||
* edu.umd.cs.findbugs.tools.FilterPropertyDatabase <file>: filters a property
|
||||
database, only passing through the annotations on public or protected
|
||||
methods
|
||||
* edu.umd.cs.findbugs.tools.html.PlainPrintBugDescriptions [docTitle]:
|
||||
prints findbugs bug descriptions as plain text
|
||||
* edu.umd.cs.findbugs.tools.html.PrettyPrintBugDescriptions [-unabridged]
|
||||
[docTitle]: prints findbugs bug descriptions as HTML. If the -unabridged
|
||||
option is given, then warnings from disabled detectors are also printed.
|
||||
* edu.umd.cs.findbugs.tools.junit.JUnitJarRunner [-textui|-swingui]
|
||||
<test suite jar file> [<classpath with code to test>]: run all of the JUnit
|
||||
tests in a jar file.
|
||||
* edu.umd.cs.findbugs.tools.xml.CheckMessages <plugin descriptor xml>
|
||||
<bug description xml> [<bug description xml> ...]: check the XML message
|
||||
files in a findbugs plugin for validity and completeness.
|
||||
146
findbugs.spec
Normal file
146
findbugs.spec
Normal file
@ -0,0 +1,146 @@
|
||||
%global noupdatechecks_version 20140707gitcce19ac
|
||||
|
||||
Name: findbugs
|
||||
Version: 3.0.1
|
||||
Release: 16
|
||||
Summary: Find Bugs in Java Programs
|
||||
License: LGPLv2+
|
||||
URL: http://findbugs.sourceforge.net/
|
||||
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-source.zip
|
||||
Source1: findbugs-ant
|
||||
Source2: findbugs-tools-README
|
||||
Source3: http://repo1.maven.org/maven2/com/google/code/findbugs/findbugs/3.0.1/findbugs-3.0.1.pom
|
||||
Source4: http://repo1.maven.org/maven2/com/google/code/findbugs/annotations/3.0.0/annotations-3.0.0.pom
|
||||
|
||||
# This archive contains the source for the noUpdateChecks plugin.
|
||||
# It was created with:
|
||||
# $ git clone --bare https://code.google.com/p/findbugs
|
||||
# $ git --git-dir=findbugs.git archive --format tgz cce19ac plugins/noUpdateChecks -o noUpdateChecks-plugin-20140707gitcce19ac.tgz
|
||||
Source5: noUpdateChecks-plugin-%{noupdatechecks_version}.tgz
|
||||
Source6: http://repo1.maven.org/maven2/com/google/code/findbugs/findbugs-ant/3.0.0/findbugs-ant-3.0.0.pom
|
||||
# It looks in /usr/share/java for jar files at compile time, instead of in findbugs' lib directory.
|
||||
Patch0000: findbugs-build.patch
|
||||
# Set xsl.stylesheet.home to the directory containing the DocBook Modular XSL Stylesheets from http://docbook.sourceforge.net/projects/xsl/
|
||||
Patch0001: findbugs-manual.patch
|
||||
# Port to dom4j 2.0
|
||||
Patch0002: findbugs-dom4j.patch
|
||||
BuildArch: noarch
|
||||
BuildRequires: ant findbugs-bcel docbook-style-xsl apache-commons-lang dom4j jaxen jcip-annotations jdepend jFormatString
|
||||
BuildRequires: javapackages-local jsr-305 junit make objectweb-asm perl-interpreter perl-generators
|
||||
BuildRequires: docbook-style-xsl tex(latex) texlive-preprint libxslt java-devel >= 1:1.6.0 jpackage-utils
|
||||
Requires: apache-commons-lang findbugs-bcel dom4j jaxen jcip-annotations objectweb-asm
|
||||
Requires: junit jsr-305 jpackage-utils jFormatString java >= 1:1.6.0
|
||||
|
||||
%description
|
||||
Findbugs is a program which uses static analysis to look for bugs in Java code.
|
||||
|
||||
%package -n ant-findbugs
|
||||
Summary: findbugs used for Ant task
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: ant
|
||||
|
||||
%description -n ant-findbugs
|
||||
The ant-findbugs package contain an ant task for integration of findbugs easily into ant-controlled project.
|
||||
|
||||
%package help
|
||||
Summary: Help documentation for findbugs
|
||||
Provides: %{name}-javadoc = %{version}-%{release}
|
||||
Obsoletes: %{name}-javadoc < %{version}-%{release}
|
||||
|
||||
%description help
|
||||
Help documentation for findbugs.
|
||||
|
||||
%package tools
|
||||
Summary: Addon tools for findbugs
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: junit
|
||||
|
||||
%description tools
|
||||
Provide additional tools for use with findbugs. See README.openEuler for more information.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -a 5
|
||||
install -p %{SOURCE2} README.tools
|
||||
find lib -name ".jar" -exec rm {} \;
|
||||
find src/gui/edu/umd/cs/findbugs/gui2 -name "OSXAdapter.java" -exec rm {} \;
|
||||
%pom_remove_dep com.apple:AppleJavaExtensions %{SOURCE3}
|
||||
|
||||
%build
|
||||
ant docs build
|
||||
ant apiJavadoc
|
||||
cd $RPM_BUILD_DIR/%{name}-%{version}/design/architecture
|
||||
make depend
|
||||
make
|
||||
jar fc $RPM_BUILD_DIR/%{name}-%{version}/lib/findbugs-tools.jar \
|
||||
$RPM_BUILD_DIR/%{name}-%{version}/build/classes/edu/umd/cs/findbugs/tools
|
||||
|
||||
cd $RPM_BUILD_DIR/%{name}-%{version}/plugins/noUpdateChecks
|
||||
ant plugin-jar
|
||||
|
||||
%install
|
||||
|
||||
for dir in %{_javadir}/ant %{_javadocdir} %{_datadir}/%{name}/lib %{_bindir} %{_mavenpomdir};
|
||||
do
|
||||
mkdir -p $RPM_BUILD_ROOT$dir
|
||||
done
|
||||
|
||||
cp -Rdp apiJavaDoc $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
||||
cp -Rdp etc plugin $RPM_BUILD_ROOT%{_datadir}/%{name}
|
||||
cp -p plugins/noUpdateChecks/build/noUpdateChecks.jar $RPM_BUILD_ROOT%{_datadir}/%{name}/plugin
|
||||
install -pD %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/ant.d/%{name}
|
||||
|
||||
mv lib/annotations.jar lib/%{name}-annotations.jar
|
||||
for file in %{name}-annotations %{name}-tools %{name} %{name}-ant;
|
||||
do
|
||||
cp -p lib/$file.jar $RPM_BUILD_ROOT%{_javadir}/$file.jar
|
||||
done
|
||||
mv $RPM_BUILD_ROOT%{_javadir}/%{name}-ant.jar $RPM_BUILD_ROOT%{_javadir}/ant/ant-%{name}.jar
|
||||
|
||||
for f in $(find bin -maxdepth 1 -type f \! -name '*.bat' \! -name '*.ico');
|
||||
do
|
||||
cp -p $f $RPM_BUILD_ROOT%{_bindir}
|
||||
done
|
||||
|
||||
for i in findbugs findbugs-bcel dom4j jaxen objectweb-asm/asm-all jsr-305 jFormatString apache-commons-lang;
|
||||
do
|
||||
ln -s %{_javadir}/$i.jar $RPM_BUILD_ROOT%{_datadir}/%{name}/lib
|
||||
done
|
||||
|
||||
rm -f build/doc/manual*.xml build/doc/manual*.xsl
|
||||
|
||||
sed -i 's/3\.0\.0/3\.0\.1/g' %{SOURCE4} %{SOURCE6}
|
||||
cp %{SOURCE3} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
|
||||
cp %{SOURCE4} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}-annotations.pom
|
||||
cp %{SOURCE6} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.ant-ant-%{name}.pom
|
||||
|
||||
%add_maven_depmap -a net.sourceforge.findbugs:findbugs JPP-%{name}.pom %{name}.jar
|
||||
%add_maven_depmap -a net.sourceforge.findbugs:annotations JPP-%{name}-annotations.pom %{name}-annotations.jar
|
||||
%add_maven_depmap -a net.sourceforge.findbugs:findbugs-ant JPP.ant-ant-%{name}.pom ant/ant-findbugs.jar -f ant
|
||||
|
||||
%pretrans help -p <lua>
|
||||
path = "%{_javadocdir}/%{name}"
|
||||
st = posix.stat(path)
|
||||
if st and st.type == "link" then
|
||||
os.remove(path)
|
||||
end
|
||||
|
||||
%files -f .mfiles
|
||||
%doc licenses/LICENSE.txt design/DecouplingFromBCEL.txt design/VisitingAndCaching.txt
|
||||
%doc README.txt "design/eclipse findbugs plugin features.sxw"
|
||||
%doc design/architecture/architecture.pdf build/doc
|
||||
%{_bindir}/*
|
||||
%{_datadir}/%{name}
|
||||
|
||||
%files -n ant-findbugs -f .mfiles-ant
|
||||
%config(noreplace) %{_sysconfdir}/ant.d/%{name}
|
||||
|
||||
%files help
|
||||
%{_javadocdir}/*
|
||||
|
||||
%files tools
|
||||
%doc README.tools
|
||||
%{_javadir}/findbugs-tools.jar
|
||||
|
||||
%changelog
|
||||
* Tue Mar 03 2020 wangyiru <wangyiru1@huawei.com> - 3.0.1-16
|
||||
- Package init
|
||||
BIN
noUpdateChecks-plugin-20140707gitcce19ac.tgz
Normal file
BIN
noUpdateChecks-plugin-20140707gitcce19ac.tgz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user