Skip to content

Commit e047ca3

Browse files
committed
[alignment] Update deprecated output argument for spotbugs 4.5.x
fixes #369
1 parent e142e08 commit e047ca3

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/main/groovy/org/codehaus/mojo/spotbugs/SpotBugsMojo.groovy

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -857,10 +857,10 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
857857
}
858858

859859
if(!sarifOutput) {
860-
args << "-xml:withMessages"
860+
args << "-xml:withMessages=" + tempFile.getAbsolutePath()
861861
}
862862
else {
863-
args << "-sarif"
863+
args << "-sarif=" + tempFile.getAbsolutePath()
864864
}
865865

866866
args << "-auxclasspathFromInput"
@@ -956,10 +956,6 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
956956
args << maxRank
957957
}
958958

959-
args << "-output"
960-
args << tempFile.getAbsolutePath()
961-
962-
963959
if (classFilesDirectory.exists() && classFilesDirectory.isDirectory()) {
964960
log.debug(" Adding to Source Directory ->" + classFilesDirectory.absolutePath)
965961
args << classFilesDirectory.absolutePath

0 commit comments

Comments
 (0)