com.phenix.pct
Class PCTCompile

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by com.phenix.pct.PCT
              extended by com.phenix.pct.PCTRun
                  extended by com.phenix.pct.PCTCompile
All Implemented Interfaces:
Cloneable

public class PCTCompile
extends PCTRun

Class for compiling Progress procedures

Author:
Gilles QUERRET

Field Summary
 
Fields inherited from class com.phenix.pct.PCTRun
dbConnList, exec, initID, initProc, internalPropath, outputParameters, outputStream, outputStreamID, pctLib, plID, procedure, propath, runParameters, status, statusID
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
PCTCompile()
          Creates a new PCTCompile object
 
Method Summary
 void addFileset(org.apache.tools.ant.types.FileSet set)
          Adds a set of files to archive.
protected  void cleanup()
          Delete temporary files if debug not activated
 void execute()
          Do the work
 void setDebugListing(boolean debugListing)
          Create debug list files during compilation
 void setDestDir(File destDir)
          Location to store the .r files
 void setFailOnError(boolean failOnError)
          Immediatly quit if a progress procedure fails to compile
 void setForceCompile(boolean forceCompile)
          Force compilation, without xref generation
 void setKeepXref(boolean keepXref)
          Generates a .xref in the .pct directory, result of XREF option in the COMPILE statement
 void setLanguages(String languages)
          Identifies which language segments to include in the compiled r-code.
 void setListing(boolean listing)
          Create listing files during compilation
 void setMD5(boolean md5)
          Put MD5 in r-code ?
 void setMinSize(boolean minSize)
          Reduce r-code size ?
 void setNoCompile(boolean noCompile)
          No real compilation ; just print the files which should be recompiled
 void setNoParse(boolean noParse)
          Disables completely XREF generation and parsing.
 void setNoXref(boolean noXref)
          Deprecated.  
 void setPreprocess(boolean preprocess)
          Create preprocessing files during compilation
 void setRunList(boolean runList)
          Generates a .run file in the .pct directory, which shows internal and external procedures calls
 void setTextGrowth(int growthFactor)
          Specifies the factor by which ABL increases the length of strings.
 void setXCode(boolean xcode)
          Procedures are encrypted ?
 void setXCodeKey(String xcodeKey)
          Compile using a specific key instead of the default key
 void setXRefDir(File xrefDir)
          Directory where to store CRC and includes files : .pct subdirectory is created there
 
Methods inherited from class com.phenix.pct.PCTRun
addOption, addOutputParameter, addParameter, addPCTConnection, addPCTRunOption, addPropath, createPropath, escapeString, getCmdLineParameters, getDebugPCT, getStatusFileName, isPrepared, maybeSetResultPropertyValue, prepareExecTask, preparePropath, setBaseDir, setCenturyYearOffset, setCompileUnderscore, setCpInternal, setCpStream, setDebugPCT, setDebugReady, setDirSize, setExecTaskParams, setGraphicalMode, setIniFile, setInputChars, setMaximumMemory, setMsgBufferSize, setNumDec, setNumSep, setParameter, setParameters, setParamFile, setProcedure, setResultProperty, setStackSize, setTempDir, setToken, setTTBufferSize
 
Methods inherited from class com.phenix.pct.PCT
addEnv, checkDlcHome, deleteDirectory, extractPL, extractPL, getDlcBin, getDlcHome, getDLCMaintenanceVersion, getDLCMajorVersion, getDLCMinorVersion, getDLCPatchLevel, getDLCRevision, getEnvironment, getExecPath, getFullVersion, getIncludedPL, getJavaFileset, getJavaFileset, getProgressProcedures, getRCodeVersion, getReducedVersion, isSourceCodeUsed, nextRandomInt, setDlcBin, setDlcHome, setDlcJava, setIncludedPL
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PCTCompile

public PCTCompile()
Creates a new PCTCompile object

Method Detail

setMinSize

public void setMinSize(boolean minSize)
Reduce r-code size ? MIN-SIZE option of the COMPILE statement

Parameters:
minSize - "true|false|on|off|yes|no"

setForceCompile

public void setForceCompile(boolean forceCompile)
Force compilation, without xref generation

Parameters:
forceCompile - "true|false|on|off|yes|no"
Since:
0.3b

setListing

public void setListing(boolean listing)
Create listing files during compilation

Parameters:
listing - "true|false|on|off|yes|no"
Since:
0.10

setPreprocess

public void setPreprocess(boolean preprocess)
Create preprocessing files during compilation

Parameters:
preprocess - "true|false|on|off|yes|no"
Since:
0.10

setDebugListing

public void setDebugListing(boolean debugListing)
Create debug list files during compilation

Parameters:
debugListing - "true|false|on|off|yes|no"
Since:
PCT 0.13

setFailOnError

public void setFailOnError(boolean failOnError)
Immediatly quit if a progress procedure fails to compile

Overrides:
setFailOnError in class PCTRun
Parameters:
failOnError - "true|false|on|off|yes|no"

setNoXref

public void setNoXref(boolean noXref)
Deprecated. 

Don't use XREF (and so compile everything). Removed since 0.5, use forceCompile

Parameters:
noXref - "true|false|on|off|yes|no"

setNoParse

public void setNoParse(boolean noParse)
Disables completely XREF generation and parsing. This means there's no generated file in .pct subdirectory. This attribute is not public right now, still being tested. This is used just to bypass a bug when compiling classes.

Parameters:
noParse - "true|false|on|off|yes|no"

setKeepXref

public void setKeepXref(boolean keepXref)
Generates a .xref in the .pct directory, result of XREF option in the COMPILE statement

Parameters:
keepXref - "true|false|on|off|yes|no"

setXRefDir

public void setXRefDir(File xrefDir)
Directory where to store CRC and includes files : .pct subdirectory is created there

Parameters:
xrefDir - File

setMD5

public void setMD5(boolean md5)
Put MD5 in r-code ? GENERATE-MD5 option of the COMPILE statement

Parameters:
md5 - "true|false|on|off|yes|no"

setNoCompile

public void setNoCompile(boolean noCompile)
No real compilation ; just print the files which should be recompiled

Parameters:
noCompile - "true|false|on|off|yes|no"

setRunList

public void setRunList(boolean runList)
Generates a .run file in the .pct directory, which shows internal and external procedures calls

Parameters:
runList - "true|false|on|off|yes|no"

setDestDir

public void setDestDir(File destDir)
Location to store the .r files

Parameters:
destDir - Destination directory

setXCode

public void setXCode(boolean xcode)
Procedures are encrypted ?

Parameters:
xcode - boolean

setXCodeKey

public void setXCodeKey(String xcodeKey)
Compile using a specific key instead of the default key

Parameters:
xcodeKey - String

setLanguages

public void setLanguages(String languages)
Identifies which language segments to include in the compiled r-code. LANGUAGES option of the COMPILE statement

Parameters:
languages - String

setTextGrowth

public void setTextGrowth(int growthFactor)
Specifies the factor by which ABL increases the length of strings. TEXT-SEG-GROWTH option of the COMPILE statement

Parameters:
growthFactor - int (must be positive)

addFileset

public void addFileset(org.apache.tools.ant.types.FileSet set)
Adds a set of files to archive.

Parameters:
set - FileSet

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Do the work

Overrides:
execute in class PCTRun
Throws:
org.apache.tools.ant.BuildException - Something went wrong

cleanup

protected void cleanup()
Delete temporary files if debug not activated

Overrides:
cleanup in class PCTRun
See Also:
PCTRun.cleanup()


Copyright © 2003-2011 Gilles QUERRET. All Rights Reserved.