[Stackoverflow] [Progress OpenEdge ABL] PCTCompile and strict compile options

Status
Not open for further replies.
W

W0lfw00ds

Guest
Im trying to make PCTCompile fail compilation with the following settings:

Code:
requireFullNames="true"
requireFieldQualifiers="true"
requireReturnValues="true"

However, requireReturnValues="true" only logs a warning, it doesn't throw error. So it seems that I cannot use these fields for this purpose.

I saw some examples online, using the -compileroptionsfile, like this:

Code:
<PCTCompile
    destDir="${compiledir}"
    DlcHome="${env.DLC}"
    progPerc="2"
    displayFiles="1"
    stackSize="512"
    inputChars="32000"
    debugListing="false"
    listing="true"
    xmlXref="true"
    keepXref="true"
    numThreads="1"
    stopOnError="true"
    relativePaths="true"
    outputType="json"
>
<Option name="-compileroptionsfile" value="C:\tmp\compiler.options" />

And the compiler.options file looks like this:

Code:
require-full-names:Error,
require-field-qualifiers:Error,
require-return-values:Error

This logs the following:

Code:
[INFO] [PCTCompile] PCT compiler options are overridden by COMPILER:OPTIONS

Does this mean that some of the parameters defined in the PCTCompile element are actually ignored, for example stackSize, because I'm using this -compileroptionsfile option?

I'm using OpenEdge Release: 12.2.13.

Continue reading...
 
Status
Not open for further replies.
Back
Top