void readChanges() { String strTimestamp = CRhoFile.readStringFromResourceFile(CONF_FILENAME + CONF_TIMESTAMP); if (CRhoFile.isFileExist(getConfFilePath() + CONF_CHANGES)) { String strSettings = CRhoFile.readStringFromFile(getConfFilePath() + CONF_CHANGES); loadFromString(strSettings, m_mapChangedValues); String strOldTimestamp = ""; if (m_mapChangedValues.containsKey(CONF_TIMESTAMP_PROP)) { strOldTimestamp = (String)m_mapChangedValues.get(CONF_TIMESTAMP_PROP); } if (strTimestamp.compareTo(strOldTimestamp) != 0) { checkConflicts(); } loadFromString(strSettings, m_mapValues); } else { m_mapChangedValues.put(CONF_TIMESTAMP_PROP, strTimestamp); } }
public void conflictsResolved() { if (m_mapConflictedValues.size() == 0) { return; } String strTimestamp = CRhoFile.readStringFromResourceFile(CONF_FILENAME + CONF_TIMESTAMP); setString(CONF_TIMESTAMP_PROP, strTimestamp, true); m_mapConflictedValues.clear(); }
public static void deployContent() { String newMap = CRhoFile.readStringFromResourceFile("RhoBundleMap.txt"); String curMap = CRhoFile.readStringFromFile("RhoBundleMap.txt"); if (curMap == "") { copyMap(newMap); } else if (curMap != newMap) { clearMap(curMap); copyMap(newMap); } }
public static void deployContent() { String newMap = CRhoFile.readStringFromResourceFile(RHODESAPP().canonicalizeRhoPath("RhoBundleMap.txt")); String curMap = CRhoFile.readStringFromFile(RHODESAPP().canonicalizeRhoPath("RhoBundleMap.txt")); if (curMap == "") { copyMap(newMap); } else if (curMap != newMap) { clearMap(curMap); copyMap(newMap); } }
private void loadFromResource() { String strSettings = CRhoFile.readStringFromResourceFile(CONF_FILENAME); loadFromString(strSettings, m_mapValues); }