The Files window shows the physical storage of a web application in the filesystem. The context menu actions available on the tree nodes are file oriented rather than logically pertaining to the project. To perform logical operations on a project, it is best to work in the Projects window.
Choose Window > Files to display the Files view. The following table describes the top-level nodes.
Folder | Description |
---|---|
Project-Name | The root node for a project. |
build |
Contains the intermediate output of the build process. The structure and content of the build directory reflect the actual web application deployed to the application server, including JSP files, compiled Java files, cascading style sheets, images, and the root directory for the web. The IDE regenerates this directory when you start a build. The IDE deletes this directory when you clean the project. Because the contents of this directory are dynamically generated from the project source code, its contents should not be placed under source control. The IDE deletes this folder when you choose Build > Clean Main Project or Build > Clean and Build Main Project from the main menu. |
dist | Contains the project's WAR files. WAR files are created when you build a project. |
lib | Contains the component libraries associated with the project. |
nbproject |
Contains the metadata files for the project. Metadata files include:
|
src |
The primary Java source root for the project. At this time, only one Java source root per project is allowed. All sources are intended to be version controlled. The src node contains Java source files that generate the servlets, beans, and other Java classes that are unique to the application. Java package hierarchy is reflected as a directory structure underneath this directory. When you create a web application project, the IDE creates a default package to hold the backing files for the JavaServer Faces web forms. The initial name for this package is derived from the project name. |
test |
Not used by the IDE. |
web |
Contains the static content of the application (HTML pages, JSP pages, CSS stylesheet files, and resources) that will be accessible to application clients. This directory will be the document root of the web application, and any subdirectory structure found here will be reflected in the request URIs required to access those files.
The web folder contains the WEB-INF folder which holds special configuration files
required for the application, including the web application deployment descriptor
( |
build.xml |
Holds the main script for building the project. To execute the
If you delete the |