You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by be...@apache.org on 2009/05/05 16:51:56 UTC

svn commit: r771760 - /maven/components/branches/MNG-2766/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java

Author: bentmann
Date: Tue May  5 14:51:56 2009
New Revision: 771760

URL: http://svn.apache.org/viewvc?rev=771760&view=rev
Log:
o Added debug dump of entire build plan

Modified:
    maven/components/branches/MNG-2766/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java

Modified: maven/components/branches/MNG-2766/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java
URL: http://svn.apache.org/viewvc/maven/components/branches/MNG-2766/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java?rev=771760&r1=771759&r2=771760&view=diff
==============================================================================
--- maven/components/branches/MNG-2766/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java (original)
+++ maven/components/branches/MNG-2766/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java Tue May  5 14:51:56 2009
@@ -177,7 +177,24 @@
         throws LifecycleExecutionException, MojoFailureException
     {
         List<MojoExecution> lifecyclePlan = calculateLifecyclePlan( task, session );        
-        
+
+        if ( logger.isDebugEnabled() )
+        {
+            logger.debug( "=== BUILD PLAN ===" );
+            logger.debug( "Project:       " + project );
+            for ( MojoExecution mojoExecution : lifecyclePlan )
+            {
+                MojoDescriptor mojoDescriptor = mojoExecution.getMojoDescriptor();
+                PluginDescriptor pluginDescriptor = mojoDescriptor.getPluginDescriptor();
+                logger.debug( "------------------" );
+                logger.debug( "Goal:          " + pluginDescriptor.getGroupId() + ':' + pluginDescriptor.getArtifactId() + ':'
+                    + pluginDescriptor.getVersion() + ':' + mojoDescriptor.getGoal() + ':'
+                    + mojoExecution.getExecutionId() );
+                logger.debug( "Configuration: " + String.valueOf( mojoExecution.getConfiguration() ) );
+            }
+            logger.debug( "==================" );
+        }
+
         for ( MojoExecution mojoExecution : lifecyclePlan )
         {            
             try