Package org.apache.maven.cling.utils
Class CLIReportingUtils
java.lang.Object
org.apache.maven.cling.utils.CLIReportingUtils
Utility class used to report errors, statistics, application version info, etc.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final long
private static final long
private static final long
private static final long
private static final long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
createMavenVersionString
(Properties buildProperties) Create a human-readable string containing the Maven version, buildnumber, and time of buildstatic String
formatDuration
(Duration duration) static String
formatTimestamp
(TemporalAccessor instant) static Properties
private static String
static void
static String
static String
showVersion
(String commandLine, String terminal) static String
-
Field Details
-
MB
public static final long MB- See Also:
-
ONE_SECOND
private static final long ONE_SECOND- See Also:
-
ONE_MINUTE
private static final long ONE_MINUTE- See Also:
-
ONE_HOUR
private static final long ONE_HOUR- See Also:
-
ONE_DAY
private static final long ONE_DAY- See Also:
-
BUILD_VERSION_PROPERTY
- See Also:
-
-
Constructor Details
-
CLIReportingUtils
public CLIReportingUtils()
-
-
Method Details
-
showVersion
-
showVersion
-
showVersionMinimal
-
createMavenVersionString
Create a human-readable string containing the Maven version, buildnumber, and time of build- Parameters:
buildProperties
- The build properties- Returns:
- Readable build info
-
reduce
-
getBuildProperties
-
showError
-
formatTimestamp
-
formatDuration
-