You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by bi...@apache.org on 2011/07/15 18:44:42 UTC
svn commit: r1147229 -
/maven/jxr/trunk/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/AbstractJxrReport.java
Author: bimargulies
Date: Fri Jul 15 16:44:42 2011
New Revision: 1147229
URL: http://svn.apache.org/viewvc?rev=1147229&view=rev
Log:
[JXR-86] add standard skip configuration option
Modified:
maven/jxr/trunk/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/AbstractJxrReport.java
Modified: maven/jxr/trunk/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/AbstractJxrReport.java
URL: http://svn.apache.org/viewvc/maven/jxr/trunk/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/AbstractJxrReport.java?rev=1147229&r1=1147228&r2=1147229&view=diff
==============================================================================
--- maven/jxr/trunk/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/AbstractJxrReport.java (original)
+++ maven/jxr/trunk/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/AbstractJxrReport.java Fri Jul 15 16:44:42 2011
@@ -158,6 +158,14 @@ public abstract class AbstractJxrReport
* @deprecated
*/
protected boolean aggregate;
+
+ /**
+ * Whether to skip this execution.
+ *
+ * @parameter expression="${maven.jxr.skip}" default-value="false"
+ * @since 2.3
+ */
+ protected boolean skip;
/**
* Link the Javadoc from the Source XRef. Defaults to true and will link
@@ -433,6 +441,11 @@ public abstract class AbstractJxrReport
protected void executeReport( Locale locale )
throws MavenReportException
{
+ if ( skip )
+ {
+ getLog().info( "Skipping JXR." );
+ return;
+ }
List sourceDirs = constructSourceDirs();
if ( canGenerateReport( sourceDirs ) )
{