com.camunda.toolkit.jbpm.tools.ant
Class ParTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.MatchingTask
org.apache.tools.ant.taskdefs.Zip
org.apache.tools.ant.taskdefs.Jar
com.camunda.toolkit.jbpm.tools.ant.ParTask
- All Implemented Interfaces:
- org.apache.tools.ant.types.selectors.SelectorContainer
public class ParTask
- extends org.apache.tools.ant.taskdefs.Jar
An extension of to create a jBpm process archive archive. Contains special treatment for files
processdefinition.xml.
(The Par task is a shortcut for specifying the particular layout of a PAR file. The same thing can be accomplished
by using the prefix and fullpath attributes of zipfilesets in a Zip or Jar task.)
The extended zipfileset element from the zip task (with attributes prefix, fullpath, and src) is available in the
Par task.
Behavior: [1] processdefinitionxml attribute must be specified. The file specified there will end up as
./processdefinition.xml in the resulting PAR [2] The nested classes element specifies a FileSet. It is optional. All
files included in this fileset will end up in the classes directory of the par file
- Author:
- Raka Angga Jananuraga (don_raka@jbpm.org)
Nested classes/interfaces inherited from class org.apache.tools.ant.taskdefs.Jar |
org.apache.tools.ant.taskdefs.Jar.FilesetManifestConfig |
Nested classes/interfaces inherited from class org.apache.tools.ant.taskdefs.Zip |
org.apache.tools.ant.taskdefs.Zip.ArchiveState, org.apache.tools.ant.taskdefs.Zip.Duplicate, org.apache.tools.ant.taskdefs.Zip.WhenEmpty |
Fields inherited from class org.apache.tools.ant.taskdefs.Zip |
addedDirs, archiveType, doubleFilePass, duplicate, emptyBehavior, entries, skipWriting, zipFile |
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
fileset |
Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Method Summary |
void |
addClasses(org.apache.tools.ant.types.ZipFileSet fs)
|
protected void |
cleanUp()
|
protected void |
initZipOutputStream(org.apache.tools.zip.ZipOutputStream zOut)
|
void |
setProcessdefinitionxml(java.io.File descr)
|
protected void |
zipFile(java.io.File file,
org.apache.tools.zip.ZipOutputStream zOut,
java.lang.String vPath,
int mode)
|
Methods inherited from class org.apache.tools.ant.taskdefs.Jar |
addConfiguredIndexJars, addConfiguredManifest, addMetainf, createEmptyZip, finalizeZipOutputStream, findJarName, getResourcesToAdd, grabFilesAndDirs, reset, setFilesetmanifest, setIndex, setJarfile, setManifest, setManifestEncoding, setWhenempty, writeIndexLikeList, zipFile |
Methods inherited from class org.apache.tools.ant.taskdefs.Zip |
addFileset, addParentDirs, addResources, addZipfileset, addZipGroupFileset, execute, executeMain, getComment, getDestFile, getEncoding, grabResources, isAddingNewFiles, isCompress, isEmpty, isInUpdateMode, selectFileResources, setBasedir, setComment, setCompress, setDestFile, setDuplicate, setEncoding, setFile, setFilesonly, setKeepCompression, setRoundUp, setUpdate, setZipfile, zipDir, zipDir |
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParTask
public ParTask()
setProcessdefinitionxml
public void setProcessdefinitionxml(java.io.File descr)
addClasses
public void addClasses(org.apache.tools.ant.types.ZipFileSet fs)
initZipOutputStream
protected void initZipOutputStream(org.apache.tools.zip.ZipOutputStream zOut)
throws java.io.IOException,
org.apache.tools.ant.BuildException
- Overrides:
initZipOutputStream
in class org.apache.tools.ant.taskdefs.Jar
- Throws:
java.io.IOException
org.apache.tools.ant.BuildException
zipFile
protected void zipFile(java.io.File file,
org.apache.tools.zip.ZipOutputStream zOut,
java.lang.String vPath,
int mode)
throws java.io.IOException
- Overrides:
zipFile
in class org.apache.tools.ant.taskdefs.Zip
- Throws:
java.io.IOException
cleanUp
protected void cleanUp()
- Overrides:
cleanUp
in class org.apache.tools.ant.taskdefs.Jar
Copyright © 2007 camunda GmbH. All Rights Reserved.