Browse Source

Make <war> use the .war directory layout. Don't ask me where my mind

has been.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268010 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 25 years ago
parent
commit
fef46698fb
2 changed files with 8 additions and 8 deletions
  1. +6
    -6
      docs/index.html
  2. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/War.java

+ 6
- 6
docs/index.html View File

@@ -3807,8 +3807,8 @@ carried from tarfile.</p>
<h2><a name="war">War</a></h2>
<h3>Description</h3>
<p>An extension of the <a name="#jar">Jar</a> task with special
treatment for files that should end up in the <code>lib</code>,
<code>classes</code> or <code>WEB-INF</code> directories of the Web
treatment for files that should end up in the <code>WEB-INF/lib</code>,
<code>WEB-INF/classes</code> or <code>WEB-INF</code> directories of the Web
Application Archive.</p>
<h3>Parameters</h3>
<table border="1" cellpadding="2" cellspacing="0">
@@ -3882,11 +3882,11 @@ Application Archive.</p>
<h4>lib</h4>
<p>The nested <code>lib</code> element specifies a <a
href="#fileset">FileSet</a>. All files included in this fileset will
end up in the <code>lib</code> directory of the war file.</p>
end up in the <code>WEB-INF/lib</code> directory of the war file.</p>
<h4>classes</h4>
<p>The nested <code>classes</code> element specifies a <a
href="#fileset">FileSet</a>. All files included in this fileset will
end up in the <code>classes</code> directory of the war file.</p>
end up in the <code>WEB-INF/classes</code> directory of the war file.</p>
<h4>webinf</h4>
<p>The nested <code>webinf</code> element specifies a <a
href="#fileset">FileSet</a>. All files included in this fileset will
@@ -3917,8 +3917,8 @@ then the war file <code>myapp.war</code> created with
will consist of
<pre>
WEB-INF/web.xml
lib/jdbc2.jar
classes/com/myco/myapp/Servlet.class
WEB-INF/lib/jdbc2.jar
WEB-INF/classes/com/myco/myapp/Servlet.class
META-INF/MANIFEST.MF
index.html
front.jsp


+ 2
- 2
src/main/org/apache/tools/ant/taskdefs/War.java View File

@@ -116,8 +116,8 @@ public class War extends Jar {
throw new BuildException("webxml attribute is required", location);
}

addFiles(libFileSets, zOut, "lib/");
addFiles(classesFileSets, zOut, "classes/");
addFiles(libFileSets, zOut, "WEB-INF/lib/");
addFiles(classesFileSets, zOut, "WEB-INF/classes/");
addFiles(webInfFileSets, zOut, "WEB-INF/");

super.initZipOutputStream(zOut);


Loading…
Cancel
Save