public class WorkingDir extends Object
| Constructor and Description |
|---|
WorkingDir() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static boolean |
copyFile(File src,
File dst) |
static String |
getWorkingDir(Properties envProps,
boolean migrateOldConfig)
Only call this once on router invocation.
|
(package private) static void |
migrateFileXML(File oldFile,
File newFile,
String oldString,
String newString,
String oldString2,
String newString2)
Copy over a XML file with modifications.
|
(package private) static boolean |
migrateJettyXml(File olddir,
File todir,
String filename,
String oldString,
String newString)
Copy over the jetty.xml file with modifications
It was already copied over once in migrate(), throw that out and
do it again with modifications.
|
static boolean copyFile(File src, File dst)
src - not a directory, must existdst - not a directory, will be overwritten if existing, will be mode 600public static String getWorkingDir(Properties envProps, boolean migrateOldConfig)
migrateOldConfig - whether to copy all data over from an existing installstatic void migrateFileXML(File oldFile, File newFile, String oldString, String newString, String oldString2, String newString2) throws IOException
oldString - to replacenewString - replacementoldString2 - to replace, or nullnewString2 - replacement, or nullIOException - on all errors