示例#1
0
        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);
            }
        }
示例#2
0
        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);
            }
        }
示例#3
0
        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);
            }
        }