Created
June 6, 2011 12:20
-
-
Save mallowlabs/1010153 to your computer and use it in GitHub Desktop.
A patch for Jenkins JavaNCSS Plugin with "mvn site"
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
Index: src/main/java/hudson/plugins/javancss/JavaNCSSMavenPublisher.java | |
=================================================================== | |
--- src/main/java/hudson/plugins/javancss/JavaNCSSMavenPublisher.java (revision 39313) | |
+++ src/main/java/hudson/plugins/javancss/JavaNCSSMavenPublisher.java (working copy) | |
@@ -47,8 +47,8 @@ | |
private static final String PLUGIN_EXECUTE_GOAL = "report"; | |
protected boolean isExecutingMojo(MojoInfo mojo) { | |
- return mojo.pluginName.matches(PLUGIN_GROUP_ID, PLUGIN_ARTIFACT_ID) | |
- && PLUGIN_EXECUTE_GOAL.equals(mojo.getGoal()); | |
+ return (mojo.pluginName.matches(PLUGIN_GROUP_ID, PLUGIN_ARTIFACT_ID) | |
+ && PLUGIN_EXECUTE_GOAL.equals(mojo.getGoal())) || "site".equals(mojo.getGoal()); | |
} | |
protected Ghostwriter newGhostwriter(MavenProject pom, MojoInfo mojo) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment