You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ca...@apache.org on 2007/06/22 03:53:20 UTC

svn commit: r549667 - /maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/ide/AbstractIdeSupportMojo.java

Author: carlos
Date: Thu Jun 21 18:53:19 2007
New Revision: 549667

URL: http://svn.apache.org/viewvc?view=rev&rev=549667
Log:
[MECLIPSE-271] Ability to skip
Submitted by: Dan Tran

Modified:
    maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/ide/AbstractIdeSupportMojo.java

Modified: maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/ide/AbstractIdeSupportMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/ide/AbstractIdeSupportMojo.java?view=diff&rev=549667&r1=549666&r2=549667
==============================================================================
--- maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/ide/AbstractIdeSupportMojo.java (original)
+++ maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/ide/AbstractIdeSupportMojo.java Thu Jun 21 18:53:19 2007
@@ -166,6 +166,13 @@
     protected List reactorProjects;
 
     /**
+     * Skip the operation when true
+     * 
+     * @parameter expression="${eclipse.skip}" default-value="false"
+     */
+    private boolean skip;
+    
+    /**
      * Enables/disables the downloading of source attachments. Defaults to false. When this flag is <code>true</code>
      * remote repositories are checked for sources: in order to avoid repeated check for unavailable source archives,
      * a status cache is mantained into the target dir of the root project. Run <code>mvn:clean</code> or delete the
@@ -404,6 +411,11 @@
     public final void execute()
         throws MojoExecutionException, MojoFailureException
     {
+    	if ( skip )
+    	{
+    		return;
+    	}
+
         boolean processProject = setup();
         if ( !processProject )
         {