Portlet Factory, Version 6.1.2


 

Excluding files from a deployed WAR

IBM® WebSphere Portlet Factory provides a mechanism you can use to exclude one or more project files from a deployed WAR.

This can be useful when you want to exclude development-related files, such as a mock database or test models, from the deployed WAR.

WebSphere Portlet Factory's internal Ant scripts used to generate WAR files recognize the following pattern: **/nodeploy/**

As a result, you can create one or more /nodeploy/ directories at any location within a project and place in these directories project artifacts that you do not want included in the deployed WAR. When the WAR is built by the Ant scripts, the contents of the /nodeploy/ directories will be excluded from the build process.

For example, to exclude a:

Model

.../nodeploy/test.model

Directory

.../nodeploy/design_notes/*

Database

.../nodeploy/cloudscape/*

Parent topic: About working with projects


Library | Support |