public final class PropertyFileConfigurator
extends java.lang.Object
Given a template file and a path to a new or existing property file, this will prompt for required parameters, supplying descriptions and defaults as specified in the template file.
It then re-writes the destination property file.
Prompted values are indicated by preceding the default value with an "at" sign "@".
Example:
some.key = @This is the description|This is the default value.It allows substitution of other keys using the syntax "${key-name}". This can be done in default values, descriptions, or regular keys. Substitutions are not guaranteed to be done in any particular order. To ensure all substitutions are resolved, it will continuously re-evaluate all found substitutions until no more are pending, or until a complete pass yields no new substitutions are some still remain in which case an exception is thrown.
Constructor and Description |
---|
PropertyFileConfigurator() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Run from command line.
|
Copyright ? 2002 Clarity Systems Group, LLC. All Rights Reserved.