de.smartics.maven.plugin.buildmetadata.common
Class MojoUtils

Package class diagram package MojoUtils
java.lang.Object
  extended by de.smartics.maven.plugin.buildmetadata.common.MojoUtils

public final class MojoUtils
     
     
extends Object

Utilities for this Mojo.

Author:
Robert Reiner

Method Summary
static MojoExecutionException createException(Log log, Throwable e, String message)
          Logs and creates the given exception.
static String toPrettyString(List<?> list)
          Turns the list to its string representation, removing the starting and trailing brackets.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createException

public static MojoExecutionException createException(Log log,
                                                     Throwable e,
                                                     String message)
Logs and creates the given exception.

Parameters:
log - the logger to use.
e - the original exception to throw.
message - the message to log and add to the mojo exception.
Returns:
the exception that wraps the given exception.

toPrettyString

public static String toPrettyString(List<?> list)
Turns the list to its string representation, removing the starting and trailing brackets.

Parameters:
list - the list whose string representation is requested.
Returns:
the string representation of the list.


Copyright © 2006-2012 Kronseder & Reiner GmbH - smartics. All Rights Reserved.