ShowTable of Contents
Ant scripts can be used to automate the build process for your Web Experience Factory applications. If you're creating multiple WEF applications, you may have resources that are common to all of your WEF applications. This article discusses how you can include these shared resources in WEF application WAR files using ant scripts.
Paths and Targets
The file paths and targets that should be modified in order to facilitate having the WEF build scripts automatically update files from a shared/linked project are the following:
doCopy - used to synchronize files from the workspace to the deployed app on the app server (for direct synchronization, local file system or mapped drive)
buildRemoteCopyZip - used to build a .zip file of the files to synchronize from the workspace to the deployed app on the app server (for http synchronization)
publishWASCE1.1 - used for the Publish Application functionality for a WASCE server
publishTomcat - used for the Publish Application functionality for a Tomcat server
buildDeploymentWar - used for the Export WEF Application WAR functionality
buildDeploymentWidgetWar - used for the Export WEF Widget WAR functionality
buildStandardPortletWar - used for the Export WEF Portlet WAR functionality for JSR-168 portlets
build286StandardPortletWar - used for the Export WEF Portlet WAR functionality for JSR-286 portlets
buildPortletEAR - used for the Publish Application functionality for WAS/Portal servers
The files in the Designer/FeatureSets/Web-App_8.0.0/Templates/Project directory (and its children) are used as templates for creating new projects. The files here will be copied into the new project as it is created.
Adding the WEF project template to a sparse project from source control
First, fetch the project from source control. Then right click the new project and select Properties. On the properties dialog, select the Project Facets node. If necessary, click the link to add facets to the project. Now, select the desired project facets to be added. You will need to add the Web Experience Factory project facet as well as the Dynamic Web 2.4 project facet and the Java project facet (1.5 or later). After you have selected the facets, click the link at the bottom which states that further configuration is available. This will allow you to select the WEF feature sets that you would like to add to the project as well as choose a publish configuration for publishing the project.