Class FileScriptLoader
- java.lang.Object
-
- io.wcm.devops.conga.plugins.ansible.util.FileScriptLoader
-
public final class FileScriptLoader extends Object
Loads text content of static file - or the output of dynamic scripts. Currently only python scripts are supported. Python needs to be installed on the machine.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
readFileToString(File file)
Read content of a file to string.
-
-
-
Method Detail
-
readFileToString
public static String readFileToString(File file) throws IOException
Read content of a file to string. If the file is a (supported) executable script, execute it and return the result.- Parameters:
file
- File- Returns:
- File content or script result
- Throws:
IOException
- I/O error
-
-