Package echo.util
Class FileUtil
java.lang.Object
echo.util.FileUtil
Used to interface with file system
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFileUtil
(PluginParameters parameters, PluginLog mavenPluginLog) Create a new instance of the FileUtil -
Method Summary
Modifier and TypeMethodDescriptionprivate void
checkForNonWritableFile
(File saveFile) private InputStream
getFileFromRelativeOrClassPath
(File basePath, String file) Retrieves the message from the location in attribute fromFileprivate void
makeFileWritable
(File saveFile) void
saveToFile
(String message) Saves text output
-
Field Details
-
READING_INPUT_FROM
- See Also:
-
mavenPluginLog
-
encoding
-
fromFile
-
basePath
-
toFile
-
appendToFile
private final boolean appendToFile -
forceOverwrite
private final boolean forceOverwrite
-
-
Constructor Details
-
FileUtil
Create a new instance of the FileUtil- Parameters:
parameters
- The user-supplied plugin parametersmavenPluginLog
- Wrapper for Maven internal plugin logger
-
-
Method Details
-
saveToFile
Saves text output- Parameters:
message
- The text to save
-
checkForNonWritableFile
-
makeFileWritable
-
getFromFile
Retrieves the message from the location in attribute fromFile- Returns:
- Content of the default sort order file
- Throws:
IOException
-
getFileFromRelativeOrClassPath
- Throws:
IOException
-