Code example for Properties

Methods: load, setProperty, store

0
     * @param value 
     * @throws Exception 
     */ 
    private void applyProperty(File srcFile, String key, String value) throws Exception {
        File destinationFile = new File(srcFile.getName());
        Properties properties = new Properties();
        properties.load(new FileInputStream(srcFile));
        properties.setProperty(key, value);
        properties.store(new FileOutputStream(destinationFile), null);
        serverConfigurationManager.applyConfigurationWithoutRestart(destinationFile);
    } 
 
    /** 
     * At the wind-up replace nhttp.properties file with previous 
     * 
     * @throws Exception 
     */ 
    @AfterClass(alwaysRun = true) 
    public void atEnd() throws Exception { 
        try { 
            super.cleanup();