Namespace: Consultingwerk.Util
Class 
PropathHelper Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:PropathHelper
Purpose:Supporting Methods for dealing with the PROPATH
Syntax:Static methods only, Protected constructor to disallow
instance creation
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Wed Dec 15 22:49:25 CET 2010



Top Method Summary
Options Name Purpose
+ LOGICAL IsAbsoluteDirectory (character) Tests if the current directory name is absolute of relative
+ CHARACTER MakeAbsolute (character, character) Turns a relative propath into an absolute path
+ ParseDotPropathFile (character, table) Parses a PDSOE project's .propath fil
+ CHARACTER PropathDelimiter () Returns the propath delimiter for the current OS

Top Constructor Summary
Options Name Purpose
# PropathHelper () Disallow instance creation


Method Detail
Top

PUBLIC LOGICAL IsAbsoluteDirectory (character)

Purpose: Tests if the current directory name is absolute of relative
Notes: Absolute paths start with either a / (slash) or a double \\ (UNC)
or a letter followed by a colon

Parameters:
pcDirectory CHARACTER
The name of the directory to test
Returns LOGICAL
Logical value indicating if the directory is specified as an absolute path
Top

PUBLIC CHARACTER MakeAbsolute (character, character)

Purpose: Turns a relative propath into an absolute path
Notes:

Parameters:
pcBasePath CHARACTER
The relative path to be used as a base for relative references
pcPropath CHARACTER
The propath to make absolute
Returns CHARACTER
The propath with only absolute path references
Top

PUBLIC ParseDotPropathFile (character, table)

Purpose: Parses a PDSOE project's .propath fil
Notes:

Parameters:
pcFileName CHARACTER
The name of the .propath file to parse
ttPropath TEMP-TABLE ttPropath
The OUTPUT temp-table with the propath entries
Top

PUBLIC CHARACTER PropathDelimiter ()

Purpose: Returns the propath delimiter for the current OS
Notes: Accoording to the OpenEdge documentation, even UNIX sessions
use the comma as the propath delimiter from within the AVM so this
method is just left for backwards compatibility

Returns CHARACTER
The comma as the propath


Constructor Detail
Top

PROTECTED PropathHelper ()

Purpose: Disallow instance creation
Notes:



Temp-Table Detail

Temp-Table ttPropath

Defined in:


©2006-2020 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       04.02.2020 23:33:40