Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Spotbugs in textui mode does not properly handle files if they have spaces in the file path #909

Open
@bennydictor

Description

@bennydictor

First, we build the Spotbugs distribution.

./gradlew assembleDistunzip spotbugs/build/distributions/spotbugs-4.0.0-SNAPSHOT.zip

If we create an empty class (this bug happens with all classes, this is just for demonstration purposes),

echo'public class Test {}'>Test.javajavac Test.java

And place its copy under a directory with spaces in the file name,

mkdir'i have spaces in the file name'cp Test.class'i have spaces in the file name/Test.class'

Then running Spotbugs on theTest.class will, unsurprisingly, produce no errors,

./spotbugs-4.0.0-SNAPSHOT/bin/spotbugs -textui Test.class

But running Spotbugs on the same class, just placed under a directory with spaces in the file name

./spotbugs-4.0.0-SNAPSHOT/bin/spotbugs -textui'i have spaces in the file name/Test.class'

Produces the following error:

Exception in thread "main" java.io.IOException: No files to analyze could be opened        at edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:274)        at edu.umd.cs.findbugs.FindBugs.runMain(FindBugs.java:394)        at edu.umd.cs.findbugs.FindBugs2.main(FindBugs2.java:1185)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2026 Movatter.jp