public class DockerPluginUtils extends Object
Constructor and Description |
---|
DockerPluginUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
deleteDirectory(String path)
Recursively deletes a given directory or a file.
|
static String |
extractBalxName(String balxFilePath)
Extract the ballerina file name from a given file path.
|
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 String extractBalxName(String balxFilePath)
balxFilePath
- balx file path.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(String path) throws DockerPluginException
path
- path to directory or fileDockerPluginException
- if an error occurs while deletingpublic static String resolveValue(String variable) throws DockerPluginException
variable
- variable valueDockerPluginException
Copyright © 2018 WSO2. All rights reserved.