Author: mkleint
Date: Sun Nov 25 11:09:34 2007
New Revision: 598032

URL: http://svn.apache.org/viewvc?rev=598032&view=rev
Log:
make the build result output processing to be  public methods.

Modified:
    
maven/components/trunk/maven-embedder/src/main/java/org/apache/maven/cli/CLIReportingUtils.java

Modified: 
maven/components/trunk/maven-embedder/src/main/java/org/apache/maven/cli/CLIReportingUtils.java
URL: 
http://svn.apache.org/viewvc/maven/components/trunk/maven-embedder/src/main/java/org/apache/maven/cli/CLIReportingUtils.java?rev=598032&r1=598031&r2=598032&view=diff
==============================================================================
--- 
maven/components/trunk/maven-embedder/src/main/java/org/apache/maven/cli/CLIReportingUtils.java
 (original)
+++ 
maven/components/trunk/maven-embedder/src/main/java/org/apache/maven/cli/CLIReportingUtils.java
 Sun Nov 25 11:09:34 2007
@@ -112,7 +112,13 @@
         }
     }
 
-    static void logResult( MavenExecutionRequest request,
+    /**
+     * Logs result of the executed build.
+     * @param request - build parameters
+     * @param result - result of build
+     * @param logger - the logger to use
+     */
+    public static void logResult( MavenExecutionRequest request,
                            MavenExecutionResult result,
                            MavenEmbedderLogger logger )
     {
@@ -206,7 +212,14 @@
         showError( null, e, show, logger );
     }
 
-    static void showError( String message,
+    /**
+     * Format the exception and output it through the logger.
+     * @param message - error message
+     * @param e - exception that was thrown
+     * @param showStackTraces
+     * @param logger
+     */
+    public static void showError( String message,
                            Exception e,
                            boolean showStackTraces,
                            MavenEmbedderLogger logger )


Reply via email to