Progress
Open Client
Developer’s Guide


Changing the Propath Setting Within a Project

You might find it necessary to change the Propath setting for existing procedures of an AppObject or SubAppObject. You can accomplish this by deleting and adding these procedures again within your project. However, this results in the loss of any customizations. To accomplish this without losing data, the Open Client Toolkit provides the Change Propath tool.

On Windows platforms, you can use this tool through the Change Propath dialog box in GUI ProxyGen. On non-Windows platforms, such as UNIX, you can use the tool by running the ChangePropath utility. ChangePropath is a Java utility installed with the Open Client Toolkit that you execute with the following syntax:

SYNTAX
java com.progress.open4gl.proxygen.ChangePropath project-file propath-file 

project-file

The project (.pxg) file for the proxy whose Propath settings you want to change.

propath-file

A text file containing a pair of strings for each Propath component you want to change, using the following syntax, where OldPropathDirectory is the current Propath component string and NewPropathDirectory is the replacement component string:

SYNTAX
{ OldPropathDirectory newline
  NewPropathDirectory newline } 
{ OldPropathDirectory newline
  NewPropathDirectory newline }
... 

NOTE: Each Propath component string must reside on a separate line

Thus, suppose you have a proxy whose project file is Employees.pxg. You might create a text file named Propath.txt with the following content:

Propath.txt

/appsv1/SimpleQueries
/appsv2/SimpleQueries
/appsv1/ComplexQueries
/appsv2/ComplexQueries 

Then run the following command:

java com.progress.open4gl.proxygen.ChangePropath Employees.pxg Propath.txt 

The component /appsv2/SimpleQueries replaces /appsv1/SimpleQueries and /appsv2/ComplexQueries replaces /appsv1/ComplexQueries in the Propath for every procedure included in Employees.pxg

NOTE: This utility is not recommended for use with Windows operating systems, even though it is accessible on these platforms. On Windows platforms, use the Change Propath dialog box in GUI ProxyGen instead.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095