org.objectweb.easybeans.ant.archive.file
Class WarFile

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.War
                          extended by org.objectweb.easybeans.ant.archive.file.WarFile
All Implemented Interfaces:
java.lang.Cloneable, org.apache.tools.ant.types.selectors.SelectorContainer, IArchive, IWar

public class WarFile
extends org.apache.tools.ant.taskdefs.War
implements IWar

Creates a WAR file.

Author:
Florent Benoit

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
private  ArchiveInfo archiveInfo
          Reference to the archive info object.
 
Fields inherited from class org.apache.tools.ant.taskdefs.Jar
emptyBehavior
 
Fields inherited from class org.apache.tools.ant.taskdefs.Zip
addedDirs, archiveType, doubleFilePass, duplicate, entries, skipWriting, zipFile
 
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
fileset
 
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
WarFile(org.apache.tools.ant.Project p)
          Creates an archive for the given project.
 
Method Summary
 void execute()
          Execute the task.
 void setArchiveInfo(ArchiveInfo archiveInfo)
          Sets the information about an archive.
 void setWarInfo(WarInfo warInfo)
          Sets the information about a war archive.
 
Methods inherited from class org.apache.tools.ant.taskdefs.War
addClasses, addLib, addWebinf, cleanUp, initZipOutputStream, setNeedxmlfile, setWarfile, setWebxml, zipFile
 
Methods inherited from class org.apache.tools.ant.taskdefs.Jar
addConfiguredIndexJars, addConfiguredManifest, addConfiguredService, addMetainf, createEmptyZip, finalizeZipOutputStream, findJarName, getResourcesToAdd, grabFilesAndDirs, reset, setFilesetmanifest, setIndex, setJarfile, setManifest, setManifestEncoding, setWhenempty, setWhenmanifestonly, writeIndexLikeList, zipFile
 
Methods inherited from class org.apache.tools.ant.taskdefs.Zip
add, addFileset, addParentDirs, addResources, addResources, addZipfileset, addZipGroupFileset, executeMain, getComment, getDestFile, getEncoding, getLevel, getNonFileSetResourcesToAdd, getResourcesToAdd, grabNonFileSetResources, grabResources, isAddingNewFiles, isCompress, isEmpty, isInUpdateMode, selectFileResources, setBasedir, setComment, setCompress, setDestFile, setDuplicate, setEncoding, setFile, setFilesonly, setKeepCompression, setLevel, 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
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

archiveInfo

private ArchiveInfo archiveInfo
Reference to the archive info object.

Constructor Detail

WarFile

public WarFile(org.apache.tools.ant.Project p)
Creates an archive for the given project.

Parameters:
p - the given project
Method Detail

setArchiveInfo

public void setArchiveInfo(ArchiveInfo archiveInfo)
Sets the information about an archive.

Specified by:
setArchiveInfo in interface IArchive
Parameters:
archiveInfo - the object that holds data information.

setWarInfo

public void setWarInfo(WarInfo warInfo)
Sets the information about a war archive.

Specified by:
setWarInfo in interface IWar
Parameters:
warInfo - the object that holds data information.

execute

public void execute()
Execute the task.

Specified by:
execute in interface IArchive
Overrides:
execute in class org.apache.tools.ant.taskdefs.Zip