Package org.apache.maven.surefire.booter
Class DumpErrorSingleton
- java.lang.Object
-
- org.apache.maven.surefire.booter.DumpErrorSingleton
-
public final class DumpErrorSingleton extends java.lang.Object
Dumps lost commands and caused exceptions in forked JVM.
Fail-safe.- Since:
- 2.20
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DUMP_FILE_EXT
private java.io.File
dumpFile
static java.lang.String
DUMPSTREAM_FILE_EXT
private java.io.File
dumpStreamFile
private static DumpErrorSingleton
SINGLETON
-
Constructor Summary
Constructors Modifier Constructor Description private
DumpErrorSingleton()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.io.File
createDumpFile(java.io.File reportsDir, java.lang.String dumpFileName)
private java.io.File
createDumpStreamFile(java.io.File reportsDir, java.lang.String dumpFileName)
void
dumpException(java.lang.Throwable t)
void
dumpException(java.lang.Throwable t, java.lang.String msg)
void
dumpStreamException(java.lang.Throwable t)
void
dumpStreamException(java.lang.Throwable t, java.lang.String msg)
void
dumpStreamText(java.lang.String msg)
void
dumpText(java.lang.String msg)
static DumpErrorSingleton
getSingleton()
void
init(java.io.File reportsDir, java.lang.String dumpFileName)
-
-
-
Field Detail
-
DUMP_FILE_EXT
public static final java.lang.String DUMP_FILE_EXT
- See Also:
- Constant Field Values
-
DUMPSTREAM_FILE_EXT
public static final java.lang.String DUMPSTREAM_FILE_EXT
- See Also:
- Constant Field Values
-
SINGLETON
private static final DumpErrorSingleton SINGLETON
-
dumpFile
private java.io.File dumpFile
-
dumpStreamFile
private java.io.File dumpStreamFile
-
-
Method Detail
-
getSingleton
public static DumpErrorSingleton getSingleton()
-
init
public void init(java.io.File reportsDir, java.lang.String dumpFileName)
-
dumpException
public void dumpException(java.lang.Throwable t, java.lang.String msg)
-
dumpException
public void dumpException(java.lang.Throwable t)
-
dumpText
public void dumpText(java.lang.String msg)
-
dumpStreamException
public void dumpStreamException(java.lang.Throwable t, java.lang.String msg)
-
dumpStreamException
public void dumpStreamException(java.lang.Throwable t)
-
dumpStreamText
public void dumpStreamText(java.lang.String msg)
-
createDumpFile
private java.io.File createDumpFile(java.io.File reportsDir, java.lang.String dumpFileName)
-
createDumpStreamFile
private java.io.File createDumpStreamFile(java.io.File reportsDir, java.lang.String dumpFileName)
-
-