org.apache.cactus.integration.ant
Class CactifyEarTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.tools.ant.taskdefs.MatchingTask
              extended by org.apache.tools.ant.taskdefs.Zip
                  extended by org.apache.tools.ant.taskdefs.Jar
                      extended by org.apache.tools.ant.taskdefs.Ear
                          extended by org.apache.cactus.integration.ant.CactifyEarTask
All Implemented Interfaces:
org.apache.tools.ant.types.selectors.SelectorContainer

public class CactifyEarTask
extends org.apache.tools.ant.taskdefs.Ear

An Ant task that injects elements necessary to run Cactus tests into an existing EAR file.

Version:
$Id: CactifyEarTask.java 394252 2006-04-15 04:20:17Z felipeal $

Nested Class Summary
 
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
 
Field Summary
 
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
 
Constructor Summary
CactifyEarTask()
           
 
Method Summary
 void addConfiguredCactuswar(CactifyWarTask theCactusWar)
           
 void execute()
          
 boolean getAddEjbReferences()
           
 void setAddEjbReferences(boolean isAddEjbReferences)
          Indicates whether or not ejb references should be added.
 void setSrcFile(java.io.File theSrcFile)
           
 
Methods inherited from class org.apache.tools.ant.taskdefs.Ear
addArchives, cleanUp, initZipOutputStream, setAppxml, setEarfile, zipFile
 
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, 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
 

Constructor Detail

CactifyEarTask

public CactifyEarTask()
Method Detail

addConfiguredCactuswar

public void addConfiguredCactuswar(CactifyWarTask theCactusWar)
Parameters:
theCactusWar - CactusWar to set

setSrcFile

public void setSrcFile(java.io.File theSrcFile)
Parameters:
theSrcFile - The srcFile to set.

getAddEjbReferences

public boolean getAddEjbReferences()
Returns:
Returns the addEjbReferences.

setAddEjbReferences

public void setAddEjbReferences(boolean isAddEjbReferences)
Indicates whether or not ejb references should be added. If set to true all local ejbs will be accessible via java:comp/env/ejb/

Parameters:
isAddEjbReferences - if ejb references should be added.

execute

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

Overrides:
execute in class org.apache.tools.ant.taskdefs.Zip
Throws:
org.apache.tools.ant.BuildException
See Also:
Task.execute()


Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.