com.phenix.pct
Class PCTLibrary

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

public class PCTLibrary
extends PCT

Class for managing Progress library files

Author:
Gilles QUERRET

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
PCTLibrary()
          Default constructor
 
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 setBasedir(File baseDir)
          Directory from which to archive files; optional.
 void setDefaultexcludes(boolean useDefaultExcludes)
          Sets whether default exclusions should be used or not.
 void setDestFile(File destFile)
          Library file name to create/update
 void setEncoding(String encoding)
          Codepage to use
 void setExcludes(String excludes)
          Sets the set of exclude patterns.
 void setExcludesfile(File excludesfile)
          Sets the name of the file containing the includes patterns.
 void setIncludes(String includes)
          Sets the set of include patterns.
 void setIncludesfile(File includesfile)
          Sets the name of the file containing the includes patterns.
 void setNoCompress(boolean noCompress)
          Compress library at the end of the process
 void setSharedFile(File sharedName)
          Shared library name
 
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

PCTLibrary

public PCTLibrary()
Default constructor

Method Detail

setSharedFile

public void setSharedFile(File sharedName)
Shared library name

Parameters:
sharedName - File name
Since:
0.14

addFileset

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

Parameters:
set - FileSet

setDestFile

public void setDestFile(File destFile)
Library file name to create/update

Parameters:
destFile - File

setEncoding

public void setEncoding(String encoding)
Codepage to use

Parameters:
encoding - String

setNoCompress

public void setNoCompress(boolean noCompress)
Compress library at the end of the process

Parameters:
noCompress - boolean

setBasedir

public void setBasedir(File baseDir)
Directory from which to archive files; optional.

Parameters:
baseDir - File

setIncludes

public void setIncludes(String includes)
Sets the set of include patterns. Patterns may be separated by a comma or a space.

Parameters:
includes - the string containing the include patterns

setExcludes

public void setExcludes(String excludes)
Sets the set of exclude patterns. Patterns may be separated by a comma or a space.

Parameters:
excludes - the string containing the exclude patterns

setIncludesfile

public void setIncludesfile(File includesfile)
Sets the name of the file containing the includes patterns.

Parameters:
includesfile - A string containing the filename to fetch the include patterns from.

setExcludesfile

public void setExcludesfile(File excludesfile)
Sets the name of the file containing the includes patterns.

Parameters:
excludesfile - A string containing the filename to fetch the include patterns from.

setDefaultexcludes

public void setDefaultexcludes(boolean useDefaultExcludes)
Sets whether default exclusions should be used or not.

Parameters:
useDefaultExcludes - "true"|"on"|"yes" when default exclusions should be used, "false"|"off"|"no" when they shouldn't be used.

execute

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

Specified by:
execute in class PCT
Throws:
org.apache.tools.ant.BuildException - Something went wrong

cleanup

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



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