1
2
3
4
5 package org.codehaus.mojo.findbugs;
6
7 import java.lang.*;
8 import java.io.*;
9 import java.net.*;
10 import java.util.*;
11 import groovy.lang.*;
12 import groovy.util.*;
13 import org.apache.maven.artifact.DependencyResolutionRequiredException;
14 import org.apache.maven.artifact.repository.DefaultArtifactRepository;
15 import org.apache.maven.artifact.resolver.ArtifactNotFoundException;
16 import org.apache.maven.artifact.resolver.ArtifactResolutionException;
17 import org.apache.maven.artifact.resolver.ArtifactResolver;
18 import org.apache.maven.doxia.sink.Sink;
19 import org.apache.maven.doxia.siterenderer.Renderer;
20 import org.apache.maven.plugin.MojoExecutionException;
21 import org.apache.maven.plugin.logging.Log;
22 import org.apache.maven.project.MavenProject;
23 import org.apache.maven.reporting.AbstractMavenReport;
24 import org.codehaus.plexus.resource.ResourceManager;
25 import org.codehaus.plexus.resource.loader.FileResourceLoader;
26 import org.codehaus.plexus.util.FileUtils;
27 import edu.umd.cs.findbugs.BugReporter;
28 import edu.umd.cs.findbugs.ClassScreener;
29 import edu.umd.cs.findbugs.DetectorFactory;
30 import edu.umd.cs.findbugs.DetectorFactoryCollection;
31 import edu.umd.cs.findbugs.Project;
32 import edu.umd.cs.findbugs.TextUIBugReporter;
33 import edu.umd.cs.findbugs.XMLBugReporter;
34 import edu.umd.cs.findbugs.config.UserPreferences;
35 import edu.umd.cs.findbugs.filter.FilterException;
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50 public class FindBugsMojo
51 extends AbstractMavenReport
52 {
53
54
55
56 static final private java.lang.String PLUGIN_NAME = null;
57 static final public java.lang.String getPLUGIN_NAME() {
58 throw new InternalError("Stubbed method");
59 }
60
61
62
63
64 static final private java.lang.String BUNDLE_NAME = null;
65 static final public java.lang.String getBUNDLE_NAME() {
66 throw new InternalError("Stubbed method");
67 }
68
69
70
71
72 static final private java.lang.String NAME_KEY = null;
73 static final public java.lang.String getNAME_KEY() {
74 throw new InternalError("Stubbed method");
75 }
76
77
78
79
80 static final private java.lang.String DESCRIPTION_KEY = null;
81 static final public java.lang.String getDESCRIPTION_KEY() {
82 throw new InternalError("Stubbed method");
83 }
84
85
86
87
88 static final private java.lang.String SOURCE_ROOT_KEY = null;
89 static final public java.lang.String getSOURCE_ROOT_KEY() {
90 throw new InternalError("Stubbed method");
91 }
92
93
94
95
96 static final private java.lang.String JAVA_SOURCES_KEY = null;
97 static final public java.lang.String getJAVA_SOURCES_KEY() {
98 throw new InternalError("Stubbed method");
99 }
100
101
102
103
104 static final private java.lang.String JAVA_REGEX_PATTERN = null;
105 static final public java.lang.String getJAVA_REGEX_PATTERN() {
106 throw new InternalError("Stubbed method");
107 }
108
109
110
111
112 static final private java.lang.String JXR_ARTIFACT_ID_KEY = null;
113 static final public java.lang.String getJXR_ARTIFACT_ID_KEY() {
114 throw new InternalError("Stubbed method");
115 }
116
117
118
119
120 static final private java.lang.String FINDBUGS_COREPLUGIN = null;
121 static final public java.lang.String getFINDBUGS_COREPLUGIN() {
122 throw new InternalError("Stubbed method");
123 }
124
125
126
127
128
129
130
131 private java.lang.String outputDirectory = null;
132 public void setOutputDirectory(java.lang.String value) {
133 throw new InternalError("Stubbed method");
134 }
135
136
137
138
139
140
141
142 private boolean xmlOutput = false;
143 public boolean getXmlOutput() {
144 throw new InternalError("Stubbed method");
145 }
146 public boolean isXmlOutput() {
147 throw new InternalError("Stubbed method");
148 }
149 public void setXmlOutput(boolean value) {
150 throw new InternalError("Stubbed method");
151 }
152
153
154
155
156
157
158
159
160 private File xmlOutputDirectory = null;
161 public File getXmlOutputDirectory() {
162 throw new InternalError("Stubbed method");
163 }
164 public void setXmlOutputDirectory(File value) {
165 throw new InternalError("Stubbed method");
166 }
167
168
169
170
171
172
173
174 private boolean findbugsXmlOutput = false;
175 public boolean getFindbugsXmlOutput() {
176 throw new InternalError("Stubbed method");
177 }
178 public boolean isFindbugsXmlOutput() {
179 throw new InternalError("Stubbed method");
180 }
181 public void setFindbugsXmlOutput(boolean value) {
182 throw new InternalError("Stubbed method");
183 }
184
185
186
187
188
189
190
191
192 private File findbugsXmlOutputDirectory = null;
193 public File getFindbugsXmlOutputDirectory() {
194 throw new InternalError("Stubbed method");
195 }
196 public void setFindbugsXmlOutputDirectory(File value) {
197 throw new InternalError("Stubbed method");
198 }
199
200
201
202
203
204
205
206 private boolean findbugsXmlWithMessages = false;
207 public boolean getFindbugsXmlWithMessages() {
208 throw new InternalError("Stubbed method");
209 }
210 public boolean isFindbugsXmlWithMessages() {
211 throw new InternalError("Stubbed method");
212 }
213 public void setFindbugsXmlWithMessages(boolean value) {
214 throw new InternalError("Stubbed method");
215 }
216
217
218
219
220
221
222
223
224 private Renderer siteRenderer = null;
225 public void setSiteRenderer(Renderer value) {
226 throw new InternalError("Stubbed method");
227 }
228
229
230
231
232
233
234
235 private File classFilesDirectory = null;
236 public File getClassFilesDirectory() {
237 throw new InternalError("Stubbed method");
238 }
239 public void setClassFilesDirectory(File value) {
240 throw new InternalError("Stubbed method");
241 }
242
243
244
245
246
247
248
249
250 private ArrayList pluginArtifacts = null;
251 public ArrayList getPluginArtifacts() {
252 throw new InternalError("Stubbed method");
253 }
254 public void setPluginArtifacts(ArrayList value) {
255 throw new InternalError("Stubbed method");
256 }
257
258
259
260
261
262
263
264
265 private DefaultArtifactRepository localRepository = null;
266 public DefaultArtifactRepository getLocalRepository() {
267 throw new InternalError("Stubbed method");
268 }
269 public void setLocalRepository(DefaultArtifactRepository value) {
270 throw new InternalError("Stubbed method");
271 }
272
273
274
275
276
277
278
279
280 private List remoteArtifactRepositories = null;
281 public List getRemoteArtifactRepositories() {
282 throw new InternalError("Stubbed method");
283 }
284 public void setRemoteArtifactRepositories(List value) {
285 throw new InternalError("Stubbed method");
286 }
287
288
289
290
291
292
293
294
295 private MavenProject project = null;
296 public void setProject(MavenProject value) {
297 throw new InternalError("Stubbed method");
298 }
299
300
301
302
303
304
305
306 private java.lang.String xmlEncoding = null;
307 public java.lang.String getXmlEncoding() {
308 throw new InternalError("Stubbed method");
309 }
310 public void setXmlEncoding(java.lang.String value) {
311 throw new InternalError("Stubbed method");
312 }
313
314
315
316
317
318
319 private java.lang.String threshold = null;
320 public java.lang.String getThreshold() {
321 throw new InternalError("Stubbed method");
322 }
323 public void setThreshold(java.lang.String value) {
324 throw new InternalError("Stubbed method");
325 }
326
327
328
329
330
331
332
333
334 private ArtifactResolver artifactResolver = null;
335 public ArtifactResolver getArtifactResolver() {
336 throw new InternalError("Stubbed method");
337 }
338 public void setArtifactResolver(ArtifactResolver value) {
339 throw new InternalError("Stubbed method");
340 }
341
342
343
344
345
346
347
348 private java.lang.String includeFilterFile = null;
349 public java.lang.String getIncludeFilterFile() {
350 throw new InternalError("Stubbed method");
351 }
352 public void setIncludeFilterFile(java.lang.String value) {
353 throw new InternalError("Stubbed method");
354 }
355
356
357
358
359
360
361
362 private java.lang.String excludeFilterFile = null;
363 public java.lang.String getExcludeFilterFile() {
364 throw new InternalError("Stubbed method");
365 }
366 public void setExcludeFilterFile(java.lang.String value) {
367 throw new InternalError("Stubbed method");
368 }
369
370
371
372
373
374
375
376 private java.lang.String effort = null;
377 public java.lang.String getEffort() {
378 throw new InternalError("Stubbed method");
379 }
380 public void setEffort(java.lang.String value) {
381 throw new InternalError("Stubbed method");
382 }
383
384
385
386
387
388
389 private Boolean debug = null;
390 public Boolean getDebug() {
391 throw new InternalError("Stubbed method");
392 }
393 public void setDebug(Boolean value) {
394 throw new InternalError("Stubbed method");
395 }
396
397
398
399
400
401
402
403
404 private Boolean relaxed = null;
405 public Boolean getRelaxed() {
406 throw new InternalError("Stubbed method");
407 }
408 public void setRelaxed(Boolean value) {
409 throw new InternalError("Stubbed method");
410 }
411
412
413
414
415
416
417
418 private java.lang.String visitors = null;
419 public java.lang.String getVisitors() {
420 throw new InternalError("Stubbed method");
421 }
422 public void setVisitors(java.lang.String value) {
423 throw new InternalError("Stubbed method");
424 }
425
426
427
428
429
430
431
432 private java.lang.String omitVisitors = null;
433 public java.lang.String getOmitVisitors() {
434 throw new InternalError("Stubbed method");
435 }
436 public void setOmitVisitors(java.lang.String value) {
437 throw new InternalError("Stubbed method");
438 }
439
440
441
442
443
444
445
446 private java.lang.String pluginList = null;
447 public java.lang.String getPluginList() {
448 throw new InternalError("Stubbed method");
449 }
450 public void setPluginList(java.lang.String value) {
451 throw new InternalError("Stubbed method");
452 }
453
454
455
456
457
458
459
460 private BugReporter bugReporter = null;
461 public BugReporter getBugReporter() {
462 throw new InternalError("Stubbed method");
463 }
464 public void setBugReporter(BugReporter value) {
465 throw new InternalError("Stubbed method");
466 }
467
468
469
470
471
472
473
474 private java.lang.String onlyAnalyze = null;
475 public java.lang.String getOnlyAnalyze() {
476 throw new InternalError("Stubbed method");
477 }
478 public void setOnlyAnalyze(java.lang.String value) {
479 throw new InternalError("Stubbed method");
480 }
481
482
483
484
485
486
487
488 private ClassScreener classScreener = null;
489 public ClassScreener getClassScreener() {
490 throw new InternalError("Stubbed method");
491 }
492 public void setClassScreener(ClassScreener value) {
493 throw new InternalError("Stubbed method");
494 }
495
496
497
498
499
500
501
502 static private boolean pluginLoaded = false;
503 static public boolean getPluginLoaded() {
504 throw new InternalError("Stubbed method");
505 }
506 static public boolean isPluginLoaded() {
507 throw new InternalError("Stubbed method");
508 }
509 static public void setPluginLoaded(boolean value) {
510 throw new InternalError("Stubbed method");
511 }
512
513
514
515
516
517
518
519 private boolean skip = false;
520 public boolean getSkip() {
521 throw new InternalError("Stubbed method");
522 }
523 public boolean isSkip() {
524 throw new InternalError("Stubbed method");
525 }
526 public void setSkip(boolean value) {
527 throw new InternalError("Stubbed method");
528 }
529
530
531
532
533
534
535
536 private ResourceManager resourceManager = null;
537 public ResourceManager getResourceManager() {
538 throw new InternalError("Stubbed method");
539 }
540 public void setResourceManager(ResourceManager value) {
541 throw new InternalError("Stubbed method");
542 }
543
544
545
546
547
548
549
550 public boolean canGenerateReport() {
551 throw new InternalError("Stubbed method");
552 }
553
554
555
556
557
558
559
560
561
562 public java.lang.String getDescription(Locale locale) {
563 throw new InternalError("Stubbed method");
564 }
565
566
567
568
569
570
571
572
573
574 public java.lang.String getName(Locale locale) {
575 throw new InternalError("Stubbed method");
576 }
577
578
579
580
581
582
583
584
585
586 public java.lang.String getOutputName() {
587 throw new InternalError("Stubbed method");
588 }
589
590
591
592
593
594
595
596 protected void addClasspathEntriesToFindBugsProject(Project findBugsProject) {
597 throw new InternalError("Stubbed method");
598 }
599
600
601
602
603
604
605
606 protected void addFiltersToFindBugs(FindBugs2Proxy findBugs) {
607 throw new InternalError("Stubbed method");
608 }
609
610
611
612
613
614
615
616 protected void addClassScreenerToFindBugs(FindBugs2Proxy findBugs) {
617 throw new InternalError("Stubbed method");
618 }
619
620
621
622
623
624
625
626 protected void addPluginsToFindBugs(Locale locale) {
627 throw new InternalError("Stubbed method");
628 }
629
630
631
632
633
634
635
636 protected void addVisitorsToFindBugs(UserPreferences preferences) {
637 throw new InternalError("Stubbed method");
638 }
639
640
641
642
643
644
645
646
647
648 protected void debugJavaSources(Locale locale, List sourceFiles) {
649 throw new InternalError("Stubbed method");
650 }
651
652
653
654
655
656
657
658
659
660
661 protected void executeReport(Locale locale) {
662 throw new InternalError("Stubbed method");
663 }
664
665
666
667
668
669
670
671
672 protected java.lang.String getCorePlugin(Locale locale) {
673 throw new InternalError("Stubbed method");
674 }
675
676
677
678
679
680
681
682
683 protected File getCorePluginPath(Locale locale) {
684 throw new InternalError("Stubbed method");
685 }
686
687
688
689
690
691
692 protected EffortParameter getEffortParameter() {
693 throw new InternalError("Stubbed method");
694 }
695
696
697
698
699
700
701
702
703
704
705 protected List getJavaSources(Locale locale, File pSourceDirectory) {
706 throw new InternalError("Stubbed method");
707 }
708
709
710
711
712
713
714
715
716
717 protected java.lang.String getOutputDirectory() {
718 throw new InternalError("Stubbed method");
719 }
720
721
722
723
724
725
726 protected ThresholdParameter getThresholdParameter() {
727 throw new InternalError("Stubbed method");
728 }
729
730
731
732
733
734
735
736
737
738
739 protected FindBugs2Proxy initialiseFindBugs(Locale locale, List sourceFiles) {
740 throw new InternalError("Stubbed method");
741 }
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756 protected Reporter initialiseReporter(Sink sink, ResourceBundle bundle, Log log, EffortParameter effortParameter) {
757 throw new InternalError("Stubbed method");
758 }
759
760
761
762
763
764
765
766
767 protected boolean isJXRPluginEnabled(ResourceBundle bundle) {
768 throw new InternalError("Stubbed method");
769 }
770
771
772
773
774
775
776
777 protected void setFindBugsDebug(FindBugs2Proxy findBugs) {
778 throw new InternalError("Stubbed method");
779 }
780
781
782
783
784
785
786
787
788 protected static ResourceBundle getBundle(Locale locale) {
789 throw new InternalError("Stubbed method");
790 }
791
792 protected java.lang.Object fail(java.lang.Object msg) {
793 throw new InternalError("Stubbed method");
794 }
795
796 protected java.lang.Object fail(java.lang.Object msg, Throwable cause) {
797 throw new InternalError("Stubbed method");
798 }
799
800 protected MavenProject getProject() {
801 throw new InternalError("Stubbed method");
802 }
803
804 protected Renderer getSiteRenderer() {
805 throw new InternalError("Stubbed method");
806 }
807
808 public groovy.lang.MetaClass getMetaClass() {
809 throw new InternalError("Stubbed method");
810 }
811
812 public void setMetaClass(groovy.lang.MetaClass metaClass) {
813 throw new InternalError("Stubbed method");
814 }
815
816 public java.lang.Object invokeMethod(java.lang.String name, java.lang.Object args) {
817 throw new InternalError("Stubbed method");
818 }
819
820 public java.lang.Object getProperty(java.lang.String name) {
821 throw new InternalError("Stubbed method");
822 }
823
824 public void setProperty(java.lang.String name, java.lang.Object value) {
825 throw new InternalError("Stubbed method");
826 }
827 }