org.objectweb.easybeans.ant.archive
Class War

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.objectweb.easybeans.ant.archive.AbsArchive
              extended by org.objectweb.easybeans.ant.archive.War
All Implemented Interfaces:
java.lang.Cloneable

public class War
extends AbsArchive

Task that creates a War archive (.war file or .war directory).

Author:
Florent Benoit

Field Summary
private static java.lang.String CLASSES_FOLDER
          WEB-INF/classes folder.
private static java.lang.String LIB_FOLDER
          WEB-INF/lib folder.
private static java.lang.String WEBINF_FOLDER
          Path of the WEB-INF folder.
 
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
War()
          Default constructor.
 
Method Summary
 void addClasses(org.apache.tools.ant.types.ZipFileSet zipFileSet)
          Add files in WEB-INF/classes folder.
 void addLib(org.apache.tools.ant.types.ZipFileSet zipFileSet)
          Add files in WEB-INF/lib folder.
 void addWebinf(org.apache.tools.ant.types.ZipFileSet zipFileSet)
          Add files in WEB-INF folder.
 void execute()
          Execute the task by using either exploded or file mode.
 
Methods inherited from class org.objectweb.easybeans.ant.archive.AbsArchive
addFileSet, getDest, getFileSetList, getName, isExploded, setDD, setDest, setExploded, setName, updateArchiveInfo
 
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
 

Field Detail

WEBINF_FOLDER

private static final java.lang.String WEBINF_FOLDER
Path of the WEB-INF folder.

See Also:
Constant Field Values

LIB_FOLDER

private static final java.lang.String LIB_FOLDER
WEB-INF/lib folder.

See Also:
Constant Field Values

CLASSES_FOLDER

private static final java.lang.String CLASSES_FOLDER
WEB-INF/classes folder.

See Also:
Constant Field Values
Constructor Detail

War

public War()
Default constructor.

Method Detail

addClasses

public void addClasses(org.apache.tools.ant.types.ZipFileSet zipFileSet)
Add files in WEB-INF/classes folder.

Parameters:
zipFileSet - the fileset that contains the files.

addLib

public void addLib(org.apache.tools.ant.types.ZipFileSet zipFileSet)
Add files in WEB-INF/lib folder.

Parameters:
zipFileSet - the fileset that contains the files.

addWebinf

public void addWebinf(org.apache.tools.ant.types.ZipFileSet zipFileSet)
Add files in WEB-INF folder.

Parameters:
zipFileSet - the fileset that contains the files.

execute

public void execute()
Execute the task by using either exploded or file mode.

Overrides:
execute in class org.apache.tools.ant.Task