Class DumpFileUtils

java.lang.Object
org.apache.maven.surefire.api.util.internal.DumpFileUtils

public final class DumpFileUtils extends Object
Dumps a text or exception in dump file. Each call logs a date when it was written to the dump file.
Since:
2.20
Author:
Tibor Digana (tibor17)
  • Method Details

    • newDumpFile

      public static File newDumpFile(File reportsDir, String dumpFileName)
      New dump file. Synchronized object appears in main memory and perfectly visible in other threads.
      Parameters:
      reportsDir - only report directory
      dumpFileName - dump file name
    • dumpException

      public static void dumpException(Throwable t, File dumpFile)
    • dumpException

      public static void dumpException(Throwable t, String msg, File dumpFile)
    • dumpText

      public static void dumpText(String msg, File dumpFile)
    • newFormattedDateFileName

      public static String newFormattedDateFileName()