Package org.apache.commons.configuration2.io

Examples of org.apache.commons.configuration2.io.FileHandler.save()


            {
                changeDetected = ctrl.checkForReloading(null);
                if (!changeDetected)
                {
                    Thread.sleep(1000);
                    handler.save(outFile);
                }
            } while (!changeDetected && --attempts > 0);
            assertTrue("No change detected", changeDetected);
            assertEquals("Wrong updated property", "yes", builder
                    .getConfiguration().getString(key));
View Full Code Here


        conf.setHeader("Description of the new property list");

        // save the configuration
        File saveFile = folder.newFile("test2.properties.xml");
        FileHandler saveHandler = new FileHandler(conf);
        saveHandler.save(saveFile);

        // reload the configuration
        XMLPropertiesConfiguration conf2 = load(saveFile.getAbsolutePath());

        // test the configuration
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.