Kbase P116259: How to validate ubroker.property file
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  4/28/2010 |
|
Status: Verified
GOAL:
How to validate a property file?
GOAL:
How to validate ubroker.properties file?
GOAL:
Is there a utility to check ubrokers, database, plugin or tools files?
GOAL:
What is the mergeprop utility
GOAL:
How to maintain the content of property files programmatically
FACT(s) (Environment):
OpenEdge 10.x
FIX:
The mergeprop utility provides a consistent means to manage and maintain the content of property files, by direct user action or programmatically. Property files store configuration information that identify and control the behavior of various components. The mergeprop program is located in the OpenEdge-Install-Directory\bin.
Presented through a command-line interface, the mergeprop utility is an alternative, fully supported tool by which you can update a property file when either the Progress Explorer tool is not available or you choose to use this approach.
The following presents the mergeprop syntax mergeprop -type file_type
[-action operation_type [group_name]]
[-target target_file]
[-delta delta_file]
[-validate]
[-nobackup]
[-silent]
[-recurse]
Parameter Values
-type (required) ubroker, database, tools, plugin, none
Each argument (other than none) implies a specific target file in the properties directory.
-action update, create, delete, list group_name, listall group_name
If no action is specified, update is assumed by default. The list and listall actions require an
additional argument, the name of the property group to be displayed (for example,
ubroker.AS.asbroker1). Do not include the square brackets ([]) that enclose the group name
in the ubroker.properties file. On update and create actions, groups listed with no properties
in the delta file are ignored.
-target (optional) Path to the property file to be modified.
If you are updating a property file that is in the <OpenEdge-Install-Dir>/properties
subdirectory, you can omit this option. Only use this option when the property file you plan
to update exists in a location other than the <OpenEdge-Install-Dir>/properties subdirectory
-delta Path to the delta file containing changes to be made
File containing create, update, or delete changes.
-validate &nbs.p; None
Performs all processing without actually making changes to the target file.
This option lets you test for errors.
-nobackup None
Does not create a backup to the target file before making changes. Unless you invoke this
option, mergeprop saves a copy of the original target file in the same directory. The backup
copy has a system- generated unique string appended to the name
(for example, ubroker.properties (31420040644533).
-silent None
surpresses all messages
-recurse None
Lists or deletes all groups, server groups, and configurations associated with the specified
database.
To validate an existing ubroker.properties file, use following syntax:
mergeprop -delta %dlc%\properties\ubroker.properties -validate -type ubroker -nobackup.