Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for formatTimestamp (0.05 sec)

  1. compat/maven-embedder/src/main/java/org/apache/maven/cli/CLIReportingUtils.java

            if (rev != null || timestamp != null) {
                msg += " (";
                msg += (rev != null ? rev : "");
                if (timestamp != null && !timestamp.isEmpty()) {
                    String ts = formatTimestamp(Long.parseLong(timestamp));
                    msg += (rev != null ? "; " : "") + ts;
                }
                msg += ")";
            }
            return msg;
        }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Nov 08 08:49:11 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/event/ExecutionEventLogger.java

    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import static org.apache.maven.cling.utils.CLIReportingUtils.formatDuration;
    import static org.apache.maven.cling.utils.CLIReportingUtils.formatTimestamp;
    
    /**
     * Logs execution events to logger, eventually user-supplied.
     *
     */
    public class ExecutionEventLogger extends AbstractExecutionListener {
        private static final int MAX_LOG_PREFIX_SIZE = 8; // "[ERROR] "
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Dec 13 15:40:45 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  3. compat/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java

    import org.slf4j.ILoggerFactory;
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import static org.apache.maven.cli.CLIReportingUtils.formatDuration;
    import static org.apache.maven.cli.CLIReportingUtils.formatTimestamp;
    
    /**
     * Logs execution events to logger, eventually user-supplied.
     *
     */
    @Deprecated
    public class ExecutionEventLogger extends AbstractExecutionListener {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Nov 08 08:49:11 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/utils/CLIReportingUtils.java

                            cause = cause.getCause()) {
                        logger.error("Caused by: {}", cause.getMessage());
                    }
                }
            }
        }
    
        public static String formatTimestamp(TemporalAccessor instant) {
            return DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(instant);
        }
    
        public static String formatDuration(Duration duration) {
            long days = duration.toDays();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Feb 10 15:02:53 UTC 2025
    - 6.8K bytes
    - Viewed (0)
Back to top