org.apache.tools.ant.taskdefs
public class War extends Jar
WEB-INF/lib, WEB-INF/classes or
WEB-INF directories of the Web Application Archive.
(The War task is a shortcut for specifying the particular layout of a WAR 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 War task.
Since: Ant 1.2
See Also: Jar
UNKNOWN: category="packaging"
| Constructor Summary | |
|---|---|
| War() | |
| Method Summary | |
|---|---|
| void | addClasses(ZipFileSet fs)
add files under WEB-INF/classes |
| void | addLib(ZipFileSet fs)
add files under WEB-INF/lib/ |
| void | addWebinf(ZipFileSet fs)
files to add under WEB-INF; |
| protected void | cleanUp()
Make sure we don't think we already have a web.xml next time this task
gets executed. |
| protected void | initZipOutputStream(ZipOutputStream zOut)
override of parent; validates configuration
before initializing the output stream. |
| void | setWarfile(File warFile)
Deprecated name of the file to create
-use destfile instead. |
| void | setWebxml(File descr)
set the deployment descriptor to use (WEB-INF/web.xml);
required unless update=true |
| protected void | zipFile(File file, ZipOutputStream zOut, String vPath, int mode)
Overridden from Zip class to deal with web.xml |
Deprecated: Use setDestFile(File) instead
Deprecated name of the file to create -use destfile instead.UNKNOWN: ignore="true"