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 WritercreateWriter(File dumpFile) static voiddumpException(Throwable t, File dumpFile) static voiddumpException(Throwable t, String msg, File dumpFile) static voidprivate static booleanstatic FilenewDumpFile(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
-