com.phenix.pct
Class PCTWSComp

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.PCTWSComp
All Implemented Interfaces:
Cloneable

public class PCTWSComp
extends PCTRun

Converts Webspeed HTML files to .w or .i

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
PCTWSComp()
           
 
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 setDebug(boolean debug)
          Sets debug flag on in e4gl-gen.p
 void setDestDir(File destDir)
          Location to store the .w files
 void setFailOnError(boolean failOnError)
          Immediatly quit if a webspeed file fails to compile
 void setForceCompile(boolean forceCompile)
          Force compilation, even if file is not modified
 void setKeepMetaContentType(boolean keepMetaContentType)
          Sets keep-meta-content-type flag on in e4gl-gen.p
 void setWebObject(boolean webObject)
          Sets web-object flag on in e4gl-gen.p
 
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

PCTWSComp

public PCTWSComp()
Method Detail

setForceCompile

public void setForceCompile(boolean forceCompile)
Force compilation, even if file is not modified

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

setFailOnError

public void setFailOnError(boolean failOnError)
Immediatly quit if a webspeed file fails to compile

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

setDebug

public void setDebug(boolean debug)
Sets debug flag on in e4gl-gen.p

Parameters:
debug - true|false|yes|no|on|off

setWebObject

public void setWebObject(boolean webObject)
Sets web-object flag on in e4gl-gen.p

Parameters:
webObject - true|false|yes|no|on|off

setKeepMetaContentType

public void setKeepMetaContentType(boolean keepMetaContentType)
Sets keep-meta-content-type flag on in e4gl-gen.p

Parameters:
keepMetaContentType - true|false|yes|no|on|off

setDestDir

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

Parameters:
destDir - Destination directory

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.