|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
com.phenix.pct.PCT
public abstract class PCT
Base class for creating tasks involving Progress. It does basic work on guessing where various bin/java/etc are located.
| Field Summary |
|---|
| 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 | |
|---|---|
PCT()
|
|
| Method Summary | |
|---|---|
void |
addEnv(org.apache.tools.ant.types.Environment.Variable var)
Add an environment variable to the launched process. |
protected void |
checkDlcHome()
|
protected static void |
deleteDirectory(File directory)
Deletes a directory recursively. |
protected static String |
escapeString(String str)
Escapes a string so it does not accidentally contain Progress escape characters |
abstract void |
execute()
This method has to be overridden |
protected File |
extractPL()
Deprecated. PCT 0.11 Use extractPL(File) instead |
protected boolean |
extractPL(File f)
Extracts pct.pl from PCT.jar into a file, and returns true if the operation was OK Automatically extract v9 or v10 PL |
protected File |
getDlcBin()
Returns Progress executables directory |
protected File |
getDlcHome()
Returns Progress installation directory |
protected String |
getDLCMaintenanceVersion()
Returns maintenance version |
protected int |
getDLCMajorVersion()
Returns major version number |
protected int |
getDLCMinorVersion()
Returns minor version number |
protected String |
getDLCPatchLevel()
Returns patch level string |
protected String |
getDLCRevision()
Deprecated. Use getDLCMaintenanceVersion() instead |
protected org.apache.tools.ant.types.Environment |
getEnvironment()
|
protected File |
getExecPath(String exec)
Returns a Progress executable path |
protected String |
getFullVersion()
Returns full version string |
protected boolean |
getIncludedPL()
Use default pct.pl included in JAR file into PROPATH |
protected org.apache.tools.ant.types.FileSet |
getJavaFileset()
Deprecated. Since 0.11, use getJavaFileset(Project) instead |
protected org.apache.tools.ant.types.FileSet |
getJavaFileset(org.apache.tools.ant.Project p)
Returns a fileset containing every JAR/ZIP files needed for proxygen task |
protected ProgressProcedures |
getProgressProcedures()
Returns an instance of ProgressProcedure |
protected long |
getRCodeVersion()
Returns r-code version |
protected String |
getReducedVersion()
Returns reduced version |
protected boolean |
isSourceCodeUsed()
|
protected static int |
nextRandomInt()
|
void |
setDlcBin(File dlcBin)
Progress binary directory |
void |
setDlcHome(File dlcHome)
Progress installation directory |
void |
setDlcJava(File dlcJava)
Progress java directory |
void |
setIncludedPL(boolean inc)
Add default pct.pl included in JAR file into PROPATH. |
| 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 |
|---|
public PCT()
| Method Detail |
|---|
public final void setDlcHome(File dlcHome)
dlcHome - Filepublic final void setDlcBin(File dlcBin)
dlcBin - Filepublic final void setDlcJava(File dlcJava)
dlcJava - Filepublic final void setIncludedPL(boolean inc)
inc - public final void addEnv(org.apache.tools.ant.types.Environment.Variable var)
var - new environment variable.protected final org.apache.tools.ant.types.Environment getEnvironment()
protected final boolean getIncludedPL()
protected final File getDlcHome()
protected final File getDlcBin()
protected final File getExecPath(String exec)
exec - String
protected org.apache.tools.ant.types.FileSet getJavaFileset()
protected org.apache.tools.ant.types.FileSet getJavaFileset(org.apache.tools.ant.Project p)
p - Project
protected ProgressProcedures getProgressProcedures()
public abstract void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionprotected void checkDlcHome()
protected File extractPL()
throws IOException
IOExceptionprotected boolean isSourceCodeUsed()
protected boolean extractPL(File f)
throws IOException
f - File or directory (must not be present)
IOExceptionprotected int getDLCMajorVersion()
protected int getDLCMinorVersion()
protected String getDLCRevision()
getDLCMaintenanceVersion() instead
protected String getDLCMaintenanceVersion()
protected String getDLCPatchLevel()
protected String getFullVersion()
protected String getReducedVersion()
protected long getRCodeVersion()
protected static String escapeString(String str)
str - the input string
protected static final int nextRandomInt()
protected static void deleteDirectory(File directory)
throws IOException
directory - directory to delete
IOException - in case deletion is unsuccessful
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||