Class DumpFileUtils
java.lang.Object
org.apache.maven.surefire.api.util.internal.DumpFileUtils
Dumps a text or exception in dump file.
Each call logs a date when it was written to the dump file.
- Since:
- 2.20
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Writer
createWriter
(File dumpFile) static void
dumpException
(Throwable t, File dumpFile) static void
dumpException
(Throwable t, String msg, File dumpFile) static void
private static boolean
static File
newDumpFile
(File reportsDir, String dumpFileName) New dump file.static String
-
Constructor Details
-
DumpFileUtils
private DumpFileUtils()
-
-
Method Details
-
newDumpFile
New dump file. Synchronized object appears in main memory and perfectly visible in other threads.- Parameters:
reportsDir
- only report directorydumpFileName
- dump file name
-
dumpException
-
dumpException
-
dumpText
-
newFormattedDateFileName
-
createWriter
- Throws:
IOException
-
mkdirs
-