Skip to content

Commit

Permalink
Merge pull request #290 from h3xstream/master
Browse files Browse the repository at this point in the history
Gradle build to generate the CLI version of FSB
  • Loading branch information
h3xstream committed Apr 5, 2017
2 parents afa7ec6 + f18317d commit cf31ec8
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 11 deletions.
1 change: 1 addition & 0 deletions cli/.gitignore
@@ -0,0 +1 @@
lib/
11 changes: 11 additions & 0 deletions cli/README.md
@@ -0,0 +1,11 @@
# Find Security Bugs - Command Line Version

The latest package version is made available in the release section : https://github.com/find-sec-bugs/find-sec-bugs/releases

## Building the package

```
gradle copyRuntimeLibs
```

The spotbugs dependencies and the latest FindSecurityBugs plugin will be place in the lib directory.
8 changes: 0 additions & 8 deletions cli/banner.txt

This file was deleted.

15 changes: 15 additions & 0 deletions cli/build.gradle
@@ -0,0 +1,15 @@
apply plugin: 'java'

repositories {
mavenCentral()
}

dependencies {
compile 'com.github.spotbugs:spotbugs:3.1.0-RC1'
compile 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.6.0'
}

task copyRuntimeLibs(type: Copy) {
into "lib"
from configurations.runtime
}
2 changes: 1 addition & 1 deletion cli/findsecbugs.bat
@@ -1,2 +1,2 @@
@echo off
java -jar findbugs.jar -quiet -pluginList findsecbugs-1.4.6.jar %*
java -cp lib/* edu.umd.cs.findbugs.LaunchAppropriateUI -quiet -pluginList lib/findsecbugs-plugin-1.6.0.jar -include include.xml %*
3 changes: 1 addition & 2 deletions cli/findsecbugs.sh
@@ -1,2 +1 @@
@echo off
java -jar findbugs.jar -quiet -pluginList findsecbugs-1.4.4.jar $@
java -cp lib/\* edu.umd.cs.findbugs.LaunchAppropriateUI -quiet -pluginList lib/findsecbugs-plugin-1.6.0.jar -include include.xml $@
5 changes: 5 additions & 0 deletions cli/include.xml
@@ -0,0 +1,5 @@
<FindBugsFilter>
<Match>
<Bug category="SECURITY"/>
</Match>
</FindBugsFilter>

0 comments on commit cf31ec8

Please sign in to comment.