public final class SurefireHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DUMP_FILE_PREFIX |
static String |
DUMP_FILENAME |
static String |
DUMP_FILENAME_FORMATTER |
static String |
DUMPSTREAM_FILENAME |
static String |
DUMPSTREAM_FILENAME_FORMATTER |
Modifier and Type | Method and Description |
---|---|
static List<CommandLineOption> |
commandLineOptions(MavenSession session,
PluginConsoleLogger log) |
static String |
escapeToPlatformPath(String path)
Escape file path for Windows when the path is too long; otherwise returns
path . |
static String[] |
getDumpFilesToPrint() |
static void |
logDebugOrCliShowErrors(String s,
PluginConsoleLogger log,
Collection<CommandLineOption> cli) |
static File |
replaceForkThreadsInPath(File path,
int replacement) |
static String |
replaceThreadNumberPlaceholders(String argLine,
int threadNumber) |
static void |
reportExecution(SurefireReportParameters reportParameters,
RunResult result,
PluginConsoleLogger log,
Exception firstForkException) |
public static final String DUMP_FILE_PREFIX
public static final String DUMP_FILENAME_FORMATTER
public static final String DUMPSTREAM_FILENAME_FORMATTER
public static final String DUMPSTREAM_FILENAME
public static final String DUMP_FILENAME
@Nonnull public static String replaceThreadNumberPlaceholders(@Nonnull String argLine, int threadNumber)
public static String[] getDumpFilesToPrint()
public static void reportExecution(SurefireReportParameters reportParameters, RunResult result, PluginConsoleLogger log, Exception firstForkException) throws MojoFailureException, MojoExecutionException
public static List<CommandLineOption> commandLineOptions(MavenSession session, PluginConsoleLogger log)
public static void logDebugOrCliShowErrors(String s, PluginConsoleLogger log, Collection<CommandLineOption> cli)
public static String escapeToPlatformPath(String path)
path
.
\\?\
prefix for path with drive letter
or \\?\UNC\
for UNC path.path
- source pathCopyright © 2004–2018 The Apache Software Foundation. All rights reserved.