| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static String | osName
The |
| public static final int | PROCESS_ERROR_EXIT_CODE
Error code used when a spawn process cannot be found, created, or stopped smoothly. |
| private static final String | |
| public static final int | SYSTEM_CONFIGURATION_EXIT_CODE
Error code used when the system configuration does not satisfy the requirements (java not found for example). |
| public static final int | VERTX_DEPLOYMENT_EXIT_CODE
Error code used when a deployment failed. |
| public static final int | VERTX_INITIALIZATION_EXIT_CODE
Error code used when vert.x cannot be initialized. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | addArgument(List<String>
the list of arguments args, String the argument to add argument)Adds an argument to the given list. |
| public static void | exit(int
the code, code)0 for success. By convention a non zero value if return to denotes an
error.Exits the JVM with the given exit code. |
| public static void | exitBecauseOfProcessIssue()
Exits the JVM and indicate an issue with a process creation or termination. |
| public static void | exitBecauseOfSystemConfigurationIssue()
Exits the JVM and indicate an issue with the system configuration. |
| public static void | exitBecauseOfVertxDeploymentIssue()
Exits the JVM and indicate an issue during the deployment of the main verticle. |
| public static void | exitBecauseOfVertxInitializationIssue()
Exits the JVM and indicate an issue during the Vert.x initialization. |
| public static boolean | |
| public static boolean | |
| public static String | Returns: the quoted argumentthe argument to be quoted argument)Puts quotes around the given String if necessary. |
| DOUBLE_QUOTE | back to summary |
|---|---|
| private static final String DOUBLE_QUOTE | |
| osName | back to summary |
|---|---|
| private static String osName The | |
| PROCESS_ERROR_EXIT_CODE | back to summary |
|---|---|
| public static final int PROCESS_ERROR_EXIT_CODE Error code used when a spawn process cannot be found, created, or stopped smoothly. | |
| SINGLE_QUOTE | back to summary |
|---|---|
| private static final String SINGLE_QUOTE | |
| SYSTEM_CONFIGURATION_EXIT_CODE | back to summary |
|---|---|
| public static final int SYSTEM_CONFIGURATION_EXIT_CODE Error code used when the system configuration does not satisfy the requirements (java not found for example). | |
| VERTX_DEPLOYMENT_EXIT_CODE | back to summary |
|---|---|
| public static final int VERTX_DEPLOYMENT_EXIT_CODE Error code used when a deployment failed. | |
| VERTX_INITIALIZATION_EXIT_CODE | back to summary |
|---|---|
| public static final int VERTX_INITIALIZATION_EXIT_CODE Error code used when vert.x cannot be initialized. | |
| ExecUtils | back to summary |
|---|---|
| public ExecUtils() | |
| addArgument | back to summary |
|---|---|
| public static void addArgument(List<String> args, String argument) Adds an argument to the given list. It automatically adds quotes to the argument if necessary. | |
| exit | back to summary |
|---|---|
| public static void exit(int code) Exits the JVM with the given exit code.
| |
| exitBecauseOfProcessIssue | back to summary |
|---|---|
| public static void exitBecauseOfProcessIssue() Exits the JVM and indicate an issue with a process creation or termination. | |
| exitBecauseOfSystemConfigurationIssue | back to summary |
|---|---|
| public static void exitBecauseOfSystemConfigurationIssue() Exits the JVM and indicate an issue with the system configuration. | |
| exitBecauseOfVertxDeploymentIssue | back to summary |
|---|---|
| public static void exitBecauseOfVertxDeploymentIssue() Exits the JVM and indicate an issue during the deployment of the main verticle. | |
| exitBecauseOfVertxInitializationIssue | back to summary |
|---|---|
| public static void exitBecauseOfVertxInitializationIssue() Exits the JVM and indicate an issue during the Vert.x initialization. | |
| isLinux | back to summary |
|---|---|
public static boolean isLinux()
| |
| isWindows | back to summary |
|---|---|
public static boolean isWindows()
| |
| quoteArgument | back to summary |
|---|---|
| public static String quoteArgument(final String argument) Puts quotes around the given String if necessary. If the argument doesn't include spaces or quotes, return it as is. If it contains double quotes, use single quotes - else surround the argument by double quotes.
| |