Package org.apache.maven.cli
Class CLIReportingUtils
- java.lang.Object
-
- org.apache.maven.cli.CLIReportingUtils
-
public final class CLIReportingUtils extends Object
Utility class used to report errors, statistics, application version info, etc.- Author:
- jdcasey
-
-
Field Summary
Fields Modifier and Type Field Description static String
BUILD_VERSION_PROPERTY
static long
MB
-
Constructor Summary
Constructors Constructor Description CLIReportingUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
formatDuration(long duration)
static String
formatTimestamp(long timestamp)
static void
showError(org.slf4j.Logger logger, String message, Throwable e, boolean showStackTrace)
static String
showVersion()
static String
showVersionMinimal()
-
-
-
Field Detail
-
MB
public static final long MB
- See Also:
- Constant Field Values
-
BUILD_VERSION_PROPERTY
public static final String BUILD_VERSION_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
showVersion
public static String showVersion()
-
showVersionMinimal
public static String showVersionMinimal()
-
showError
public static void showError(org.slf4j.Logger logger, String message, Throwable e, boolean showStackTrace)
-
formatTimestamp
public static String formatTimestamp(long timestamp)
-
formatDuration
public static String formatDuration(long duration)
-
-