com.phenix.pct
Class PCTBgCompile

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.PCTBgRun
                  extended by com.phenix.pct.PCTBgCompile
All Implemented Interfaces:
Cloneable

public class PCTBgCompile
extends PCTBgRun

Class for compiling Progress procedures

Author:
Gilles QUERRET

Nested Class Summary
 class PCTBgCompile.CompilationBackgroundWorker
           
static class PCTBgCompile.RCodeMapper
           
 
Field Summary
 
Fields inherited from class com.phenix.pct.PCTBgRun
internalPropath, pctLib, plID
 
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
PCTBgCompile()
           
 
Method Summary
 void add(org.apache.tools.ant.util.FileNameMapper fileNameMapper)
          Add a nested filenamemapper.
 void addFileset(org.apache.tools.ant.types.FileSet set)
          Adds a set of files to archive.
 org.apache.tools.ant.types.Mapper createMapper()
          Define the mapper to map source to destination files.
protected  BackgroundWorker createOpenEdgeWorker(Socket socket)
           
 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 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.PCTBgRun
addOption, addOutputParameter, addParameter, addPCTConnection, addPCTRunOption, cleanup, createPropath, getOptions, logMessages, preparePropath, setBaseDir, setBuildException, setCenturyYearOffset, setCompileUnderscore, setCpInternal, setCpStream, setDebugPCT, setDebugReady, setDirSize, setGraphicalMode, setIniFile, setInputChars, setMaximumMemory, setMsgBufferSize, setNumDec, setNumSep, setNumThreads, setParameter, setParamFile, setPropath, setResultProperty, setStackSize, setTempDir, setToken, setTTBufferSize
 
Methods inherited from class com.phenix.pct.PCT
addEnv, checkDlcHome, deleteDirectory, escapeString, 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

PCTBgCompile

public PCTBgCompile()
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 PCTBgRun
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"

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

add

public void add(org.apache.tools.ant.util.FileNameMapper fileNameMapper)
Add a nested filenamemapper.

Parameters:
fileNameMapper - the mapper to add.
Since:
Ant 1.6.3

createMapper

public org.apache.tools.ant.types.Mapper createMapper()
                                               throws org.apache.tools.ant.BuildException
Define the mapper to map source to destination files.

Returns:
a mapper to be configured.
Throws:
org.apache.tools.ant.BuildException - if more than one mapper is defined.

execute

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

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

createOpenEdgeWorker

protected BackgroundWorker createOpenEdgeWorker(Socket socket)
Specified by:
createOpenEdgeWorker in class PCTBgRun


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