Skip to content

Commit

Permalink
Merge pull request #382 from hazendaz/spotbugs
Browse files Browse the repository at this point in the history
[alignment] Update deprecated output argument for spotbugs 4.5.x
  • Loading branch information
hazendaz committed Dec 20, 2021
2 parents e142e08 + e047ca3 commit 3ed11ee
Showing 1 changed file with 2 additions and 6 deletions.
Expand Up @@ -857,10 +857,10 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
}

if(!sarifOutput) {
args << "-xml:withMessages"
args << "-xml:withMessages=" + tempFile.getAbsolutePath()
}
else {
args << "-sarif"
args << "-sarif=" + tempFile.getAbsolutePath()
}

args << "-auxclasspathFromInput"
Expand Down Expand Up @@ -956,10 +956,6 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
args << maxRank
}

args << "-output"
args << tempFile.getAbsolutePath()


if (classFilesDirectory.exists() && classFilesDirectory.isDirectory()) {
log.debug(" Adding to Source Directory ->" + classFilesDirectory.absolutePath)
args << classFilesDirectory.absolutePath
Expand Down

0 comments on commit 3ed11ee

Please sign in to comment.