Revision 6030
Added by ben leinfelder about 13 years ago
SimpleProperties.java | ||
---|---|---|
140 | 140 |
} |
141 | 141 |
|
142 | 142 |
/** |
143 |
* Utility method to add a property value both in memory and to the |
|
144 |
* properties file |
|
145 |
* |
|
146 |
* @param propertyName |
|
147 |
* the name of the property to add |
|
148 |
* @param newValue |
|
149 |
* the new value for the property |
|
150 |
*/ |
|
151 |
public void addProperty(String propertyName, String value) throws GeneralPropertyException { |
|
152 |
sortedProperties.addProperty(propertyName, value); |
|
153 |
sortedProperties.store(); |
|
154 |
} |
|
155 |
|
|
156 |
/** |
|
143 | 157 |
* Utility method to set a property value both in memory and to the |
144 | 158 |
* properties file |
145 | 159 |
* |
Also available in: Unified diff
allow the addition of properties via code