Package net.datacrow.core.modules.upgrade

Examples of net.datacrow.core.modules.upgrade.ModuleUpgrade


     * @param xml The XML file byte content
     * @throws InvalidModuleXmlException
     * @throws ModuleUpgradeException
     */
    public XmlModule(byte[] xml) throws InvalidModuleXmlException, ModuleUpgradeException {
        byte[] newXml = new ModuleUpgrade().upgrade(xml);
       
        boolean same = newXml.length == xml.length;
        if (same) {
            for (int i = 0; i < newXml.length; i++)
                same &= newXml[i] == xml[i];
View Full Code Here


       
                // Initialize all modules
                showSplashMsg(DcResources.getText("msgLoadingModules"));
   
                long start = logger.isDebugEnabled() ? new Date().getTime() : 0;
                new ModuleUpgrade().upgrade();
                if (logger.isDebugEnabled()) {
                    long end = new Date().getTime();
                    logger.debug("Upgrading the modules took " + (end - start) + "ms");
               
       
View Full Code Here

TOP

Related Classes of net.datacrow.core.modules.upgrade.ModuleUpgrade

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.