Consultor Eletrônico



Kbase P127918: How to maintain ubroker.properties with the mergeprop utility
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   9/5/2008
Status: Verified

GOAL:

How to delete properties with mergeprop utilitiy

GOAL:

How to update the ubroker.properties file from the command line

GOAL:

How to delete ubroker.properties group entries from the command line

FACT(s) (Environment):

OpenEdge 10.1x
All Supported Operating Systems

FIX:

The mergeprop utility allows the content of OpenEdge property files to be managed from the command line interface. A single property within a group cannot be deleted explicitly, only group-level deletions can be performed.

EXAMPLE: to delete one or more of the properties of asbroker2, perhaps because they are now being assigned at a higher level

proenv> mergeprop -type ubroker -action list UBroker.AS.asbroker2 -target $DLC\properties\ubroker.properties > changeasbroker2
proenv> mergeprop -type ubroker -action delete ubroker.AS.asbroker2 -delta changeasbroker2 -target $DLC\properties\ubroker.properties

Edit the changeasbroker2 delta file to remove properties and then re-add the group back into the properties file:

proenv> mergeprop -type ubroker -action update -delta changeasbroker2 -target $DLC\properties\ubroker.properties
Verify the new properties by reviewing the output, specifically lines with "VALIDATION MESSAGE:"
proenv> ubconfig -f $DLC\properties\ubroker.properties > verifubprop

NOTE: -target $DLC\properties\ubroker.properties is not entirely necessary in the above example, as this is the default location for .properties files.