public class FileUtils extends Object
| Constructor and Description |
|---|
FileUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.maven.plugin.logging.Log |
getLog() |
static void |
replaceCharacters(String filePath,
String oldValue,
String newValue)
replace old string with new string and write to file
|
static boolean |
replaceCharactersInFile(String filePath,
String propertiesFilePath,
String replaceListConfigkey)
Replace special character in file "filePath".
|
static boolean |
replaceStringInFile(String filePath,
String regex,
String replacement)
Replace all String "regex" by String "replacement" in file "filePath"
|
static void |
setLog(org.apache.maven.plugin.logging.Log varLog) |
public static void setLog(org.apache.maven.plugin.logging.Log varLog)
public static org.apache.maven.plugin.logging.Log getLog()
public static boolean replaceStringInFile(String filePath, String regex, String replacement)
filePath - regex - replacement - public static boolean replaceCharactersInFile(String filePath, String propertiesFilePath, String replaceListConfigkey)
filePath - propertiesFilePath - replaceListConfigkey - Copyright © 2003–2018 eXo Platform SAS. All rights reserved.