Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
RAP/WAR Deployment with products
Contents
THIS IS EXPERIMENTAL! IT IS NOT OFFICIALLY SUPPORTED NEITHER BY RAP NOR BY PDE
With some small tricks you're able to export a .war file with the help of product definitions.
Get the war product template
Get this archive and import it into your workspace with "Import existing project". You'll end up with two projects:
- org.eclipse.equinox.servletbridge.extensionbundle
- org.eclipse.rap.demo.product
Select and contained bridge.psf and import it as Team project set. Your workspace should look like this after the last steps:
Export the product
Open the "rap-demo.product" file and export the product:
The only thing you need to adjust when exporting is to set the root directory to WEB-INF and export the whole product as archive. Due to a bug in PDE you need to rename the exported file from <filename>.war.zip to <filename>.war
You're now able to use this war file to deploy it to an existing application server.
Customize the feature
In order to build your own application, you just need to open the feature.xml of the project, remove the org.eclipse.rap.demo plugins and add your own plugins to the feature.