Kbase P143680: How to manually generate a properties file that has entries in alphabetical order?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  3/26/2009 |
|
Status: Unverified
FACT(s) (Environment):
All Supported Operating Systems
Progress 9.1D
Progress 9.1E
OpenEdge 10.x
OpenEdge Server Technology Category: AdminServer
FIX:
ubroker.properties.template file is a file containing all sample default broker definitions, the entries in this file is not alphabetically ordered as the entries are manually maintained.
Any files generated by mergeprop tool have all entries in alphabetical order, therefore, when using template file to compare against files generated by mergeprop, there will be problems. To work around this problem, following steps can be executed to get an alphabetically ordered template file. Example is for UNIX.
$ cd $DLC/properties
$ cp ubroker.properties.template ubroker.properties.test
Force 9.1e ubroker.properties.test into alphabetical order:
$ cat " " > empty.delta
$ mergeprop -type ubroker -action update \
-target ./ubroker.properties.test \
-delta ./empty.delta -nobackup
'ubroker.properties.test' is now in alphabetical order.
If you need to merge ubroker definitions from another file, add following steps (assuming ub.delta contains the broker definitions you want to add)
1. ENSURE that all paths for log files and other definitions are correct
2. Merge changes in ub.delta file:
$ mergeprop -type ubroker -action update \
-target ./ubroker.properties.test \
-delta ./ub.delta
This will create a backup file called
ubroker.properties<data-time-stamp> in alphabetical order. This is how the file looked *before* the merge.
ubroker.properties.test will now contain the info from ub.delta