The Directories page of the WebApp Properties dialog box allows you to specify custom subdirectories and specific files under the WEB-INF
directory for inclusion in your project and your archives. It also allows you to exclude directories which should never be included, such as the CVS
subdirectory that is present in every directory under CVS control. The Directories page provides the following possibilities:
WEB-INF
as any other directory, so that it appears under the Root Directory folder in the project pane and displays the same file types as other directories in the WebApp.WEB-INF
to be included in your project and archives.WEB-INF
.Note that the web content file types do not contain XML files by default. So if WEB-INF
is treated as a regular directory, deployment descriptors such
as web.xml
would not show up under WEB-INF in the Root Directory folder of the project pane. If the WebApp's file types are changed to include XML, then deployment descriptors will appear in both the Deployment Descriptors folder and under WEB-INF in the Root Directory folder in the project pane. Clicking on a deployment descriptor shown in either place will open the Deployment Descriptor Editor because the duplicate nodes in the project pane represent the same file.
Both lists on the Directories page match directory names using the same rules:
*
and ?
characters play their typical wildcard roles.WEB-INF
directory.Defines the list of directories to be excluded from archives. Use the Add and Remove buttons to add directories to and remove directories from this list. By default, the exclude list contains the directory CVS
, even if the project is not currently under CVS control by JBuilder. This exclusion can be removed.
If checked, the WEB-INF
directory is treated as any other directory, so that it appears under the Root Directory folder in the project pane and displays the same file types as other directories in the WebApp.
Defines the list of WEB-INF subdirectories to be included in archives and in your project. Use the Add and Remove buttons to add subdirectories to and remove subdirectories from this list. The list and the Add and Remove buttons are only enabled if Include Regular Content In WEB-INF And Subdirectories is checked.
Note that once a directory is filtered out, its subdirectories are never considered. So in order to show /templates/images
under WEB-INF
, both /templates
and /templates/images
(or /templates
and images
) must be added.
The reason subdirectories of WEB-INF
must be explicitly added is that often it contains subdirectories which should never be included in a WAR file. Note that WEB-INF/classes
and WEB-INF/lib
are special directories which contain files that are generated by JBuilder and although they are never shown in the project pane, they are always included in WAR archives. You should not add files to WEB-INF/classes
and WEB-INF/lib
.