public class DockerPluginUtils extends Object
| Constructor and Description |
|---|
DockerPluginUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
deleteDirectory(Path pathToBeDeleted)
Recursively deletes a given directory or a file.
|
static boolean |
isBlank(String str)
Checks if a String is empty ("") or null.
|
static void |
printDebug(String msg)
Prints a debug message.
|
static void |
printError(String msg)
Prints an Error message.
|
static String |
resolveValue(String variable)
Resolve variable value from environment variable if $env{} is used.
|
public static void printError(String msg)
msg - message to be printedpublic static void printDebug(String msg)
msg - message to be printedpublic static boolean isBlank(String str)
str - the String to check, may be nullpublic static void deleteDirectory(Path pathToBeDeleted) throws DockerPluginException
pathToBeDeleted - path to directory or fileDockerPluginException - if an error occurs while deletingpublic static String resolveValue(String variable) throws DockerPluginException
variable - variable valueDockerPluginExceptionCopyright © 2019 WSO2. All rights reserved.