public class DockerGenUtils extends Object
| Constructor and Description |
|---|
DockerGenUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
cleanErrorMessage(String errorMessage)
Cleans error message getting rid of java class names.
|
static void |
copyFileOrDirectory(Path source,
Path destination)
Copy file or directory.
|
static String |
extractUberJarName(Path uberJarFilePath)
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 |
writeToFile(String context,
Path targetFilePath)
Write content to a File.
|
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 writeToFile(String context, Path targetFilePath) throws IOException
context - context of the filetargetFilePath - target file pathIOException - If an error occurs when writing to a filepublic static String extractUberJarName(Path uberJarFilePath)
uberJarFilePath - Uber jar file path.public static void copyFileOrDirectory(Path source, Path destination) throws DockerGenException
source - source file/directory pathdestination - destination file/directory pathDockerGenExceptionCopyright © 2024 WSO2. All rights reserved.