This repository has been archived by the owner on Apr 6, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-21268] Don't reference maven classes if plugin is deactivated.
- Loading branch information
Showing
3 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
plugin/src/main/java/hudson/plugins/findbugs/MavenInitialization.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package hudson.plugins.findbugs; | ||
|
||
import hudson.plugins.analysis.views.DetailFactory; | ||
|
||
/** | ||
* Initialization of Maven classes. | ||
* | ||
* @author Ulli Hafner | ||
*/ | ||
public final class MavenInitialization { | ||
/** | ||
* Initializes the detail builder for Maven builds. | ||
* | ||
* @param detailBuilder | ||
* the builder to use | ||
*/ | ||
public static void run(final DetailFactory detailBuilder) { | ||
DetailFactory.addDetailBuilder(FindBugsMavenResultAction.class, detailBuilder); | ||
} | ||
|
||
/** | ||
* Creates a new instance of {@link MavenInitialization}. | ||
*/ | ||
private MavenInitialization() { | ||
// prevents instantiation | ||
} | ||
} |