Skip to content

Instantly share code, notes, and snippets.

@mallowlabs
Created June 6, 2011 12:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mallowlabs/1010153 to your computer and use it in GitHub Desktop.
Save mallowlabs/1010153 to your computer and use it in GitHub Desktop.
A patch for Jenkins JavaNCSS Plugin with "mvn site"
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