Namespace: Consultingwerk.Studio
Class 
CompilerHelper Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:CompilerHelper
Purpose:Contains routines to support working with the Progress
compiler
Description:Static code
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Mon Apr 25 00:28:57 CEST 2011



Top Method Summary
Options Name Purpose
+ CompileFile (character, character) Compiles a file
+ LOGICAL CompileFiles (character, character, character, character, logical) Compiles a set of files, optionally supporting MD5 hashing them for webclient optimization
+ GenerateXmlXref (character, dataset) Compiles a file to generate xml xref
+ GetLastListing (dataset) Returns the Listing Dataset of the last compile run
+ GetLastXmlXref (dataset) Returns the XmlXref Dataset of the last compile run

Top Constructor Summary
Options Name Purpose
- CompilerHelper () Disallow instance creation


Method Detail
Top

PUBLIC CompileFile (character, character)

Purpose: Compiles a file
Notes: Throws an CompileException in case of compile errors

Parameters:
pcFileName CHARACTER
The file name to compile
pcSaveInto CHARACTER
The directory to compile into, optional
Top

PUBLIC LOGICAL CompileFiles (character, character, character, character, logical)

Purpose: Compiles a set of files, optionally supporting MD5 hashing them for
webclient optimization
Notes: Processes the file masks in order, so that when *.cls is passed as the
first entry, all class files are compiled before the procedures that
might be referencing them

Parameters:
pcSourcePath CHARACTER
The source file path
pcFileMask CHARACTER
A comma-delimited list of file patterns to compile (e.g. *.cls,*.w,*.p)
pcTargetPath CHARACTER
The directory to compile into
pcLogfileName CHARACTER
The name of the logfile to create
plMD5 LOGICAL
Create MD5 hash during compilation (Web Client optimization)
Returns LOGICAL
TRUE when all files compiled, FALSE in case of errors
Top

PUBLIC GenerateXmlXref (character, dataset)

Purpose: Compiles a file to generate xml xref
Notes: Supresses warning messages from the compiler because they cannot be
distinguished from error messages

Parameters:
pcFileName CHARACTER
The file name to compile
dsXmlXref DATASET
The dsXmlXref dataset to load the XML XREF into. Should be called BY-REFERENCE
Top

PUBLIC GetLastListing (dataset)

Purpose: Returns the Listing Dataset of the last compile run
Notes:

Parameters:
dsListing DATASET
OUTPUT DATASET from Consultingwerk/Studio/Listing/dsListing.i
Top

PUBLIC GetLastXmlXref (dataset)

Purpose: Returns the XmlXref Dataset of the last compile run
Notes:

Parameters:
dsXmlXref DATASET
OUTPUT DATASET from Consultingwerk/Studio/Xref/dsXmlXref.i


Constructor Detail
Top

PRIVATE CompilerHelper ()

Purpose: Disallow instance creation
Notes:



©2006-2016 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       26.08.2016 08:45:08