Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve and generalize the CLI unix launcher #447

Merged
merged 1 commit into from Jan 26, 2019

Conversation

thypon
Copy link
Contributor

@thypon thypon commented Jan 7, 2019

  • Decouple the launcher from the find-sec-bugs version
  • Made it runnable from any directory
  • Fix a bug with certain JDK classloaders not able to load wildcards
    jars.

This work has been sponsored by Doyensec LLC Doyensec

@coveralls
Copy link

coveralls commented Jan 7, 2019

Coverage Status

Coverage remained the same at 92.243% when pulling 386c7a5 on doyensec:master into 46cb03a on find-sec-bugs:master.

@h3xstream
Copy link
Member

That's awesome. I am going to test the script for Linux.


java -cp "$SOURCE/lib/\*:" edu.umd.cs.findbugs.LaunchAppropriateUI -quiet -pluginList lib/findsecbugs-plugin-1.8.0.jar -include include.xml $@
java -cp $(echo $DIR/lib/*.jar | tr ' ' ':') edu.umd.cs.findbugs.LaunchAppropriateUI -quiet -pluginList $FINDBUGS_PLUGIN -include include.xml $@
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-include include.xml $@ should be -include $DIR/include.xml $@

If Spotbugs can't load the filter configuration, it will skip it silently.
If the tool is placed into the PATH, it will scan the target jar, but without the security rules. 😲

@h3xstream
Copy link
Member

Sorry for the delay. I only found a small glitch. See the comment above.

- Decouple the launcher from the find-sec-bugs version
- Made it runnable from any directory
- Fix a bug with certain JDK classloaders not able to load wildcards
jars.
- Handle superdirs with spaces
@thypon
Copy link
Contributor Author

thypon commented Jan 25, 2019

I included also another fix for handling superdirs with spaces in the names.

@h3xstream h3xstream merged commit 5d298b4 into find-sec-bugs:master Jan 26, 2019
@h3xstream h3xstream added this to the version-1.9.0 milestone Feb 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants