public class DockerPluginUtils extends Object
| Constructor and Description |
|---|
DockerPluginUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.ballerinalang.model.tree.AnnotationAttachmentNode |
createAnnotation(String annotationName)
Create an annotation node.
|
static void |
deleteDirectory(Path pathToBeDeleted)
Recursively deletes a given directory or a file.
|
static List<org.wso2.ballerinalang.compiler.tree.expressions.BLangRecordLiteral.BLangRecordKeyValueField> |
getKeyValuePairs(org.wso2.ballerinalang.compiler.tree.expressions.BLangRecordLiteral bLangRecordLiteral) |
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 value)
Resolve variable value from environment variable if $env{} is used.
|
public static void printError(String msg)
msg - message to be printedpublic static List<org.wso2.ballerinalang.compiler.tree.expressions.BLangRecordLiteral.BLangRecordKeyValueField> getKeyValuePairs(org.wso2.ballerinalang.compiler.tree.expressions.BLangRecordLiteral bLangRecordLiteral)
public 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 value) throws DockerPluginException
value - variable valueDockerPluginExceptionpublic static org.ballerinalang.model.tree.AnnotationAttachmentNode createAnnotation(String annotationName)
annotationName - Name of the annotation node.Copyright © 2024 WSO2. All rights reserved.