maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r307268 - /maven/components/trunk/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java
Date Sat, 08 Oct 2005 06:52:29 GMT
Author: brett
Date: Fri Oct  7 23:52:25 2005
New Revision: 307268

URL: http://svn.apache.org/viewcvs?rev=307268&view=rev
Log:
PR: MNG-512
skip project if no goals are bound

Modified:
    maven/components/trunk/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java

Modified: maven/components/trunk/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java?rev=307268&r1=307267&r2=307268&view=diff
==============================================================================
--- maven/components/trunk/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java
(original)
+++ maven/components/trunk/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java
Fri Oct  7 23:52:25 2005
@@ -529,7 +529,14 @@
     {
         List goals = processGoalChain( task, lifecycleMappings, lifecycle );
 
-        executeGoals( goals, session, project, response );
+        if ( !goals.isEmpty() )
+        {
+            executeGoals( goals, session, project, response );
+        }
+        else
+        {
+            getLogger().info( "No goals needed for project - skipping" );
+        }
     }
 
     private void executeStandaloneGoal( String task, MavenSession session, MavenProject project,



Mime
View raw message