Handling of Existing Files When Applying a Template
When you use a custom page template in an OpenCAF Shell project that contains existing resources, Designer mergers the following files by appending the content of the new file to the content of the existing file.
Note: | Merging new and existing files does not remove duplicate elements from the output file. You must ensure that the final file does not contain duplicate elements. |
xmlImport files
WebContent/WEB-INF/before_upgrade/*/*.xml
WebContent/WEB-INF/dataSources.xml
WebContent/WEB-INF/xmlImport.xml
WebContent/WEB-INF/config/xmlImport.xml
WebContent/WEB-INF/xmlImport/*.xml
WebContent/WEB-INF/after_upgrade/*/*.xml
faces-config descriptor file
WebContent/WEB-INF/faces-config.xml
web descriptor file
WebContent/WEB-INF/web.xml
portlet descriptor files
WebContent/WEB-INF/portlet.xml
WebContent/WEB-INF/wm-portlet.xml
web service connector clients descriptor
WebContent/WEB-INF/wsclients.xml
For all other files that exist at the destination path, Designer ignores the files in the page template and uses the exiting files in the project instead.