Portlet Factory, Version 6.1.2
Excluding files from a deployed WAR
WebSphere Portlet Factory provides two mechanisms 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. These mechanisms are:
- **/nodeploy/** Directory
- Artifacts placed with this directory are not included in a deployed WAR file.
- excludeFromServer File
- Artifacts listed in this file are not included in a deployed WAR file.
Parent topic: Deployment configurations for widgets
- Using the .excludeFromServer file
IBM® WebSphere Portlet Factory WAR publishing scripts, including application server scripts, take this file into account when creating and publishing a WAR file.
- Using the **/nodeploy** directory
IBM WebSphere Portlet Factory's internal Ant scripts used to generate WAR files recognize the following pattern: **/nodeploy/**.
Library | Support |