com.claritysys.util
Class PropertyFileConfigurator

java.lang.Object
  extended by com.claritysys.util.PropertyFileConfigurator

public final class PropertyFileConfigurator
extends java.lang.Object

A program for assisting in the deployment of property file templates.

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.

Version:
$Revision: 2348 $ $Date: 2004-12-01 16:12:21 -0800 (Wed, 01 Dec 2004) $

Constructor Summary
PropertyFileConfigurator()
           
 
Method Summary
static void main(java.lang.String[] args)
          Run from command line.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyFileConfigurator

public PropertyFileConfigurator()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Run from command line.

Run with no arguments for usage.

Throws:
java.io.IOException


Copyright ? 2002 Clarity Systems Group, LLC. All Rights Reserved.