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(String source,
String destination)
Copy file or directory.
|
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 |
writeToFile(String context,
String 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, String targetFilePath) throws IOException
context - context of the filetargetFilePath - target file pathIOException - If an error occurs when writing to a filepublic static String extractBalxName(String balxFilePath)
balxFilePath - balx file path.public static void copyFileOrDirectory(String source, String destination) throws DockerGenException
source - source file/directory pathdestination - destination file/directory pathDockerGenExceptionCopyright © 2019 WSO2. All rights reserved.