Portlet Factory, Version 6.1.2
Rebuilding application server WAR files
For application development, developers sometimes need to completely rebuild the WAR. You might need to rebuild a WAR file if you add a portlet to the WAR, add Click 2 Action functionality to a WebSphere portlet, delete files from the project, or make other changes that require revision of the portlet.xml file. Portlet WARs can be rebuilt from WebSphere Portlet Factory Designer menu commands or by using a script. However, to see these development changes in your deployed portlets, update the deployed portlet WAR with the rebuilt one or redeploy using the rebuilt WAR.You can rebuild a WAR file by clicking the Synchronize (copy) modified files command on one of the following commands from the project popup menu.
- Application Server WAR
- Portal Server WAR
- Rich Client
You might occasionally want to rebuild your Application Server WAR to remove files from the WAR that have been deleted from your project, because deleting a file from your project does not automatically delete it from the WAR. You can rebuild an Application Server WAR in the same manner: by using WebSphere Portlet Factory Designer menu commands or by running an Ant script. In most cases, you need to halt the server to perform a rebuild WAR operation in the WebSphere Portlet Factory development WAR. Stopping the server ensures there are no locks on WAR files that can prevent their deletion or modification.
Synchronize (copy) modified files accomplishes its work by initially deleting all files in the project installed WAR location. This is typically the installed applications directory of the server. The entire contents of the project are copied to the installed applications location. In the case of WebSphere, the application server WAR in installableApps and the exploded application in the \installedApps folder are updated. In the case of portlets, the portlet.xml is regenerated and the deployable portlet WAR is recreated.
Parent topic: Development of a WebSphere portlet Parent topic: WAR interactions during development
Library | Support |