WebSphere® Portlet Factory provides two mechanisms you can use to exclude one or more project files from a published WAR.
This can be useful when you want to exclude development-related files, such as a mock database or test models, from the published WAR. These mechanisms are:
Artifacts placed with this directory are not included in the WAR file.excludeFromServer File
Artifacts listed in this file are not included in the WAR file.
Using the .excludeFromServer file: wpf7
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: wpf7
IBM WebSphere Portlet Factory's internal Ant scripts used to generate WAR files recognize the following pattern: **/nodeploy/**
Parent topic: Publishing to the IBM WebSphere Application Server JSR 168 and JSR 286 Portlet containers: wpf7