public final class Executor extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
Executor.Verbs
Command line directives.
|
Modifier and Type | Field and Description |
---|---|
static int |
BUFFER_SIZE
Size of console output buffer.
|
static String |
BUILD_COMMAND
Maven command predicate to create a jar file.
|
static String |
OS
Operating system name for runtime environment.
|
static String |
TESTINTEGRATION_COMMAND
Maven command predicate to run an integration test.
|
static String |
TESTSITE_COMMAND
Command line command to run TargetList full test from command line.
|
static String |
UNX_MAVEN_PATH
Command line command prefix to run maven on non-windows (Linux or OS X) platform.
|
static String |
WIN_MAVEN_PATH
Command line command prefix to run maven on windows in command.com shell.
|
Modifier | Constructor and Description |
---|---|
private |
Executor()
Private constructor -- to be inaccessible.
|
Modifier and Type | Method and Description |
---|---|
static void |
build()
Executes build command.
|
static void |
echo(String[] argsParam)
Echos prints array of strings to console, one per line.
|
static String |
executeRuntime(String commandParam)
Executes command in the shell.
|
static String |
getPlatformMvnCommand(String cmdParam)
Composes maven command appropriate for Windows or non-Windows.
|
static boolean |
isWindows()
Checks if environment is Microsoft Windows.
|
static void |
main(String[] args)
Performs Executor function.
|
static void |
run()
Reserved.
|
static void |
testIntegration()
Executes integration test.
|
static void |
testRegex(String source,
String pattern)
(Reserved.) To execute regex test.
|
static void |
testSite(String versionId)
Executes site test production test.
|
public static final int BUFFER_SIZE
public static final String BUILD_COMMAND
public static final String TESTINTEGRATION_COMMAND
public static final String TESTSITE_COMMAND
public static final String WIN_MAVEN_PATH
public static final String UNX_MAVEN_PATH
public static final String OS
public static void main(String[] args)
args
- verb -- see Executor.Verbs
, and any additional command line argumentsRuntimeException
- if verb reserved but not implementedpublic static void echo(String[] argsParam)
argsParam
- a String arraypublic static String executeRuntime(String commandParam)
commandParam
- full command line to executepublic static void run()
public static boolean isWindows()
public static String getPlatformMvnCommand(String cmdParam)
cmdParam
- parameters to come after the mvn commandpublic static void build()
public static void testSite(String versionId)
versionId
- version of site to expectpublic static void testIntegration()
Copyright © 2018. All rights reserved.