public class ConfigurationFileUpdater extends Object
A class to update configuration/*.xml
files when configuration/templates/*.xml
versions
are more recent. Checks for updates and saves prior configuration files before replacing, since user customizations
will get overwritten when a master template configuration file is changed.
This class is invoked both for overall AUV Workbench initialization and also for individual projects.
MOVES Institute Naval Postgraduate School, Monterey, CA www.nps.eduConstructor and Description |
---|
ConfigurationFileUpdater() |
Modifier and Type | Method and Description |
---|---|
static File |
copyToSaveSubdirectory(File fil,
String backupSubdirectory)
Move the passed file into the passed save subdirectory.
|
static List<String[]> |
handleUpdatedTemplatedFiles(String[][] templatedDirectories)
Based on the String array above, check the files in the template directories for updates.
|
static void |
showUpdatedDialog(List<String[]> lis) |
public static List<String[]> handleUpdatedTemplatedFiles(String[][] templatedDirectories) throws Exception
templatedDirectories
- a 2 dimensional array of template related directoriesException
public static File copyToSaveSubdirectory(File fil, String backupSubdirectory) throws IOException
fil
- File to savebackupSubdirectory
- Path to save prior files toIOException