org.apache.tools.ant.taskdefs.optional
public static class PropertyFile.Entry extends Object
Nested Class Summary | |
---|---|
static class | PropertyFile.Entry.Operation
Enumerated attribute with the values "+", "-", "=" |
static class | PropertyFile.Entry.Type
Enumerated attribute with the values "int", "date" and "string". |
Method Summary | |
---|---|
protected void | executeOn(Properties props)
Apply the nested element to the properties. |
void | setDefault(String value)
Initial value to set for a property if it is not
already defined in the property file.
|
void | setKey(String value)
Name of the property name/value pair |
void | setOperation(PropertyFile.Entry.Operation value)
operation to apply.
|
void | setPattern(String value)
For int and date type only. |
void | setType(PropertyFile.Entry.Type value)
Regard the value as : int, date or string (default) |
void | setUnit(PropertyFile.Unit unit)
The unit of the value to be applied to date +/- operations.
|
void | setValue(String value)
Value to set (=), to add (+) or subtract (-) |
Parameters: props the properties to apply the entry on.
Throws: BuildException if there is an error.
Parameters: value the default value.
Parameters: value the key.
Parameters: value the operation enumerated value.
Parameters: value the pattern to use.
Parameters: value the type enumerated value.
Parameters: unit the unit enumerated value.
Since: Ant 1.5
Parameters: value the value.