props.put(WastbasketFolderB, "/Sample/Folder_B_Trashbox");
props.put(KeepLastFileVersionB, "true");
props.storeToXML(new FileOutputStream(configFile), "Sample");
OwnSyncException ose = new OwnSyncException("Config file does not exist, is created and initialized!");
logger.throwing("OwnSyncStarter", "loadConfig(" + config + ")", ose);
throw ose;
}
props = new Properties();
props.loadFromXML(new FileInputStream(configFile));
createLogger(props);
folderAConfiguration = new FolderConfiguration(SyncFolderA, SyncFolderStateA, WastbasketFolderA, KeepLastFileVersionA, SyncExclusionPatternsA, props);
folderBConfiguration = new FolderConfiguration(SyncFolderB, SyncFolderStateB, WastbasketFolderB, KeepLastFileVersionB, SyncExclusionPatternsB, props);
logger.finest("read config file " + config);
}
catch (IOException e)
{
logger.throwing("OwnSyncStarter", "loadConfig", e);
e.printStackTrace();
throw new OwnSyncException(e);
}
}