org.ow2.util.ant.archive
Class War

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

public class War
extends AbsArchive

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

Author:
Florent Benoit

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
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.ow2.util.ant.archive.AbsArchive
addFileSet, getDest, getFileSetList, getManifest, getName, isExploded, setDD, setDest, setExploded, setManifest, setName, setSpecificDD, 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
 

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


Copyright © 2007-2013 Bull S.A.S.. All Rights Reserved.