Package co.com.bancolombia.utils
Class FileUtils
java.lang.Object
co.com.bancolombia.utils.FileUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidallFiles(File root, Consumer<File> handler, FilenameFilter filter) static booleanfinderSubProjects(String dirPath) static com.fasterxml.jackson.databind.node.ObjectNodegetFromYaml(File file) static StringgetResourceAsString(com.github.mustachejava.resolver.DefaultResolver resolver, String path) static StringparseToYaml(com.fasterxml.jackson.databind.node.ObjectNode node) static booleanreadBooleanProperty(String variable) static Stringstatic StringreadFileAsString(File file, org.gradle.api.logging.Logger logger) static StringreadFileFromZip(Path zip, String file) static StringreadProperties(String variable) static StringreadProperties(String projectPath, String variable) static voidsetGradleProperty(String projectPath, String variable, String value) static StringtoRelative(String path) static voidwriteContentToFile(String content, File file) static voidwriteString(org.gradle.api.Project project, String filePath, String content)
-
Constructor Details
-
FileUtils
public FileUtils()
-
-
Method Details
-
writeString
public static void writeString(org.gradle.api.Project project, String filePath, String content) throws IOException - Throws:
IOException
-
writeContentToFile
- Throws:
IOException
-
readFile
- Throws:
IOException
-
readFileAsString
public static String readFileAsString(File file, org.gradle.api.logging.Logger logger) throws IOException - Throws:
IOException
-
finderSubProjects
-
readProperties
- Throws:
IOException
-
readProperties
- Throws:
IOException
-
readBooleanProperty
-
setGradleProperty
public static void setGradleProperty(String projectPath, String variable, String value) throws IOException - Throws:
IOException
-
getResourceAsString
public static String getResourceAsString(com.github.mustachejava.resolver.DefaultResolver resolver, String path) throws IOException - Throws:
IOException
-
getFromYaml
public static com.fasterxml.jackson.databind.node.ObjectNode getFromYaml(File file) throws IOException - Throws:
IOException
-
parseToYaml
public static String parseToYaml(com.fasterxml.jackson.databind.node.ObjectNode node) throws IOException - Throws:
IOException
-
exists
-
toRelative
-
allFiles
-
allFiles
-
readFileFromZip
- Throws:
IOException
-