Project

General

Profile

« Previous | Next » 

Revision 6030

allow the addition of properties via code

View differences:

PropertyService.java
242 242
		properties.setProperty(propertyName, newValue);
243 243
		properties.persistProperties();
244 244
	}
245
	
246
	/**
247
	 * Utility method to add a property value both in memory and to the
248
	 * properties file
249
	 * 
250
	 * @param propertyName
251
	 *            the name of the property to add
252
	 * @param newValue
253
	 *            the value for the property
254
	 */
255
	public static void addProperty(String propertyName, String value)
256
			throws GeneralPropertyException {
257
		properties.addProperty(propertyName, value);
258
		properties.persistProperties();
259
	}
245 260

  
246 261
	/**
247 262
	 * Utility method to set a property value in memory. This will NOT cause the

Also available in: Unified diff