@@ -756,68 +756,84 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
756
756
private ArrayList<String > getSpotbugsArgs (File htmlTempFile , File xmlTempFile , File sarifTempFile ) {
757
757
ResourceHelper resourceHelper = new ResourceHelper (log, spotbugsXmlOutputDirectory, resourceManager)
758
758
List<String > args = new ArrayList<> ()
759
- File auxClasspathFile = createSpotbugsAuxClasspathFile()
760
759
761
760
if (userPrefs) {
762
- log. debug(" Adding User Preferences File -> ${ userPrefs} " )
761
+ log. debug(" Adding User Preferences File -> ${ userPrefs} " )
763
762
764
763
args << ' -userPrefs'
765
764
args << resourceHelper. getResourceFile(userPrefs. trim())
766
765
}
767
766
768
767
if (htmlOutput) {
768
+ log. debug(" Adding 'htmlOutput'" )
769
769
args << ' -html=' + htmlTempFile. getAbsolutePath()
770
770
}
771
771
772
+ log. debug(" Adding 'xml:withMessages'" )
772
773
args << ' -xml:withMessages=' + xmlTempFile. getAbsolutePath()
773
774
774
775
if (sarifOutput) {
776
+ log. debug(" Adding 'sarifOutput'" )
775
777
args << ' -sarif=' + sarifTempFile. getAbsolutePath()
776
778
}
777
779
780
+ File auxClasspathFile = createSpotbugsAuxClasspathFile()
781
+
778
782
if (auxClasspathFile) {
783
+ log. debug(" Adding 'auxclasspathFromFile'" )
779
784
args << ' -auxclasspathFromFile'
780
785
args << auxClasspathFile. getAbsolutePath()
781
786
}
782
787
788
+ log. debug(" Adding 'projectName'" )
783
789
args << ' -projectName'
784
790
args << " ${ project.name} "
785
791
792
+ log. debug(" Adding 'effortParameter'" )
786
793
args << getEffortParameter()
794
+
795
+ log. debug(" Adding 'thresholdParameter'" )
787
796
args << getThresholdParameter()
788
797
789
798
if (debug) {
790
- log. debug(' progress on ' )
799
+ log. debug(" Adding 'progress' " )
791
800
args << ' -progress'
792
801
}
793
802
794
803
if (pluginList || plugins) {
804
+ log. debug(" Adding 'pluginList'" )
795
805
args << ' -pluginList'
796
806
args << getSpotbugsPlugins()
797
807
}
798
808
799
809
800
810
if (visitors) {
811
+ log. debug(" Adding 'visitors'" )
801
812
args << ' -visitors'
802
813
args << visitors
803
814
}
804
815
805
816
if (omitVisitors) {
817
+ log. debug(" Adding 'omitVisitors'" )
806
818
args << ' -omitVisitors'
807
819
args << omitVisitors
808
820
}
809
821
810
822
if (relaxed) {
823
+ log. debug(" Adding 'relaxed'" )
811
824
args << ' -relaxed'
812
825
}
813
826
814
827
if (nested) {
828
+ log. debug(" Adding 'nested:true'" )
815
829
args << ' -nested:true'
816
830
} else {
831
+ log. debug(" Adding 'nested:false'" )
817
832
args << ' -nested:false'
818
833
}
819
834
820
835
if (onlyAnalyze) {
836
+ log. debug(" Adding 'onlyAnalyze'" )
821
837
args << ' -onlyAnalyze'
822
838
args << Arrays . stream(onlyAnalyze. split(SpotBugsInfo . COMMA )). map {
823
839
it. startsWith(" file:" ) ? Files . lines(resourceHelper. getResourceFile(it. substring(5 )). toPath())
@@ -826,7 +842,7 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
826
842
}
827
843
828
844
if (includeFilterFile) {
829
- log. debug(' Adding Include Filter File ' )
845
+ log. debug(' Adding Include Filter File' )
830
846
831
847
String [] includefilters = includeFilterFile. split(SpotBugsInfo . COMMA )
832
848
@@ -895,6 +911,7 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
895
911
}
896
912
897
913
if (maxRank) {
914
+ log. debug(" Adding 'maxRank'" )
898
915
args << ' -maxRank'
899
916
args << maxRank
900
917
}
@@ -910,7 +927,7 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
910
927
}
911
928
912
929
if (noClassOk) {
913
- log. debug(' Adding no class ok ' )
930
+ log. debug(" Adding 'noClassOk' " )
914
931
args << ' -noClassOk'
915
932
}
916
933
0 commit comments