diff --git a/docs/index.html b/docs/index.html
index fa349a5b8..a4409b74d 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -3807,8 +3807,8 @@ carried from tarfile.
Description
An extension of the Jar task with special
-treatment for files that should end up in the lib
,
-classes
or WEB-INF
directories of the Web
+treatment for files that should end up in the WEB-INF/lib
,
+WEB-INF/classes
or WEB-INF
directories of the Web
Application Archive.
Parameters
@@ -3882,11 +3882,11 @@ Application Archive.
lib
The nested lib
element specifies a FileSet. All files included in this fileset will
-end up in the lib
directory of the war file.
+end up in the WEB-INF/lib
directory of the war file.
classes
The nested classes
element specifies a FileSet. All files included in this fileset will
-end up in the classes
directory of the war file.
+end up in the WEB-INF/classes
directory of the war file.
webinf
The nested webinf
element specifies a FileSet. All files included in this fileset will
@@ -3917,8 +3917,8 @@ then the war file myapp.war
created with
will consist of
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
diff --git a/src/main/org/apache/tools/ant/taskdefs/War.java b/src/main/org/apache/tools/ant/taskdefs/War.java
index 953057965..f8e881e14 100644
--- a/src/main/org/apache/tools/ant/taskdefs/War.java
+++ b/src/main/org/apache/tools/ant/taskdefs/War.java
@@ -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);