Permalink
Browse files

Added WAR Products Example

  • Loading branch information...
1 parent 4d6e20a commit a89f0ae7d7a34983eeebf23ebf3132ad4e45d66d hstaudacher committed Feb 7, 2011
View
3 README
@@ -2,12 +2,13 @@
This repository contains different examples regarding the build process of a RAP application.
With "build process" we mean compiling a RAP application and packaging it into a deployable
-WAR file in an automated way.
+WAR file in an automated or manual way.
Currently these build systems are covered:
* Tycho - http://eclipse.org/tycho
* PDE Build - http://eclipse.org/pde/pde-build
+* WAR Products Tooling - http://wiki.eclipse.org/RAP/Equinox_WAR_products
=== Usage ===
View
@@ -0,0 +1,32 @@
+== RAP Tycho build example ==
+
+This repository contains one bundle (which contains a RAP application) to
+demonstrate how to build a RAP application with the WAR Products Tooling.
+
+=== Usage ===
+
+* Install the WAR Products Tooling. Follow the steps described on this Wiki page:
+ http://wiki.eclipse.org/RAP/Equinox_WAR_products#Download.2FInstall
+* Make sure your target is RAP 1.4 M5 or higher.
+* Clone the repository and import the bundle com.eclipsesource.maildemo.warproducts
+ into your workspace.
+* Open the maildemo.warproduct file with the WAR Product editor.
+* Use the Export Wizard by clicking on the right corner's export icon.
+* Choose a location and a name for the war file, e.g. maildemo.war.
+* Deploy the maildemo.war to the servlet container of your choice.
+
+=== Support ===
+
+If you run into problems please use the RAP newsgroup to get help:
+http://www.eclipse.org/forums/index.php?t=thread&frm_id=34&S=7af935de3aca30bd299a973485307ada
+
+=== Further information ===
+
+http://eclipse.org/rap
+http://eclipsesource.com/blogs/2011/02/02/equinoxrap-war-products-has-moved-hello-eclipse-libra/
+http://wiki.eclipse.org/RAP/Equinox_WAR_products
+http://eclipse.org/libra
+
+=== License ===
+
+All files are published under the terms of the Eclipse Public License v1.0
@@ -0,0 +1,11 @@
+# Eclipse Runtime Configuration Overrides
+# These properties are loaded prior to starting the framework and can also be used to override System Properties
+# @null is a special value used to override and clear the framework's copy of a System Property prior to starting the framework
+# "*" can be used together with @null to clear System Properties that match a prefix name.
+
+osgi.*=@null
+org.osgi.*=@null
+eclipse.*=@null
+
+osgi.parentClassloader=app
+osgi.contextClassLoaderParent=app
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
+<web-app id="WebApp">
+ <servlet id="bridge">
+ <servlet-name>equinoxbridgeservlet</servlet-name>
+ <display-name>Equinox Bridge Servlet</display-name>
+ <description>Equinox Bridge Servlet</description>
+ <servlet-class>org.eclipse.equinox.servletbridge.BridgeServlet</servlet-class>
+
+ <!-- Framework Controls could be useful for testing purpose, but
+ we disable it per default -->
+ <init-param>
+ <param-name>enableFrameworkControls</param-name>
+ <param-value>false</param-value>
+ </init-param>
+
+ <!-- Enable multi-language support for the extension registry -->
+ <!-- the OSGi console is useful for trouble shooting but will fill up your
+ appserver log quickly, so deactivate on production use. Uncomment
+ the -console parameter to enabled OSGi console access. -->
+ <init-param>
+ <param-name>commandline</param-name>
+ <param-value>-registryMultiLanguage <!-- -console --></param-value>
+ </init-param>
+
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>equinoxbridgeservlet</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+
+</web-app>
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?pde version="3.5"?>
+
+<product name="Example WAR Product" uid="com.eclipsesource.maildemo.warproduct" version="1.0.0.qualifier" useFeatures="false" includeLaunchers="false">
+ <plugins>
+ <plugin id="com.eclipsesource.maildemo.warproducts"/>
+ <plugin id="com.ibm.icu.base"/>
+ <plugin id="org.apache.commons.logging"/>
+ <plugin id="org.eclipse.core.commands"/>
+ <plugin id="org.eclipse.core.contenttype"/>
+ <plugin id="org.eclipse.core.databinding"/>
+ <plugin id="org.eclipse.core.databinding.beans"/>
+ <plugin id="org.eclipse.core.databinding.observable"/>
+ <plugin id="org.eclipse.core.databinding.property"/>
+ <plugin id="org.eclipse.core.expressions"/>
+ <plugin id="org.eclipse.core.jobs"/>
+ <plugin id="org.eclipse.core.runtime"/>
+ <plugin id="org.eclipse.equinox.app"/>
+ <plugin id="org.eclipse.equinox.common"/>
+ <plugin id="org.eclipse.equinox.http.registry"/>
+ <plugin id="org.eclipse.equinox.http.servlet"/>
+ <plugin id="org.eclipse.equinox.http.servletbridge"/>
+ <plugin id="org.eclipse.equinox.preferences"/>
+ <plugin id="org.eclipse.equinox.registry"/>
+ <plugin id="org.eclipse.equinox.servletbridge.extensionbundle" fragment="true"/>
+ <plugin id="org.eclipse.help"/>
+ <plugin id="org.eclipse.osgi"/>
+ <plugin id="org.eclipse.osgi.services"/>
+ <plugin id="org.eclipse.rap.demo"/>
+ <plugin id="org.eclipse.rap.demo.databinding"/>
+ <plugin id="org.eclipse.rap.design.example"/>
+ <plugin id="org.eclipse.rap.jface"/>
+ <plugin id="org.eclipse.rap.jface.databinding"/>
+ <plugin id="org.eclipse.rap.rwt"/>
+ <plugin id="org.eclipse.rap.rwt.q07" fragment="true"/>
+ <plugin id="org.eclipse.rap.ui"/>
+ <plugin id="org.eclipse.rap.ui.forms"/>
+ <plugin id="org.eclipse.rap.ui.views"/>
+ <plugin id="org.eclipse.rap.ui.workbench"/>
+ </plugins>
+
+ <configurations>
+ <plugin id="com.eclipsesource.maildemo.warproducts" autoStart="true" startLevel="0" />
+ <plugin id="com.ibm.icu.base" autoStart="true" startLevel="0" />
+ <plugin id="org.apache.commons.logging" autoStart="true" startLevel="0" />
+ <plugin id="org.eclipse.core.commands" autoStart="true" startLevel="0" />
+ <plugin id="org.eclipse.core.contenttype" autoStart="true" startLevel="0" />
+ <plugin id="org.eclipse.core.databinding" autoStart="true" startLevel="0" />
+ <plugin id="org.eclipse.core.databinding.beans" autoStart="true" startLevel="0" />
+ <plugin id="org.eclipse.core.databinding.observable" autoStart="true" startLevel="0" />
+ <plugin id="org.eclipse.core.databinding.property" autoStart="true" startLevel="0" />
+ <plugin id="org.eclipse.core.expressions" autoStart="true" startLevel="0" />
+ <plugin id="org.eclipse.core.jobs" autoStart="true" startLevel="0" />
+ <plugin id="org.eclipse.core.runtime" autoStart="true" startLevel="0" />
+ <plugin id="org.eclipse.equinox.app" autoStart="true" startLevel="0" />
+ <plugin id="org.eclipse.equinox.common" autoStart="true" startLevel="0" />
+ <plugin id="org.eclipse.equinox.http.registry" autoStart="true" startLevel="0" />
+ <plugin id="org.eclipse.equinox.http.servlet" autoStart="true" startLevel="0" />
+ <plugin id="org.eclipse.equinox.http.servletbridge" autoStart="true" startLevel="0" />
+ <plugin id="org.eclipse.equinox.preferences" autoStart="true" startLevel="0" />
+ <plugin id="org.eclipse.equinox.registry" autoStart="true" startLevel="0" />
+ <plugin id="org.eclipse.help" autoStart="true" startLevel="0" />
+ <plugin id="org.eclipse.osgi" autoStart="true" startLevel="0" />
+ <plugin id="org.eclipse.osgi.services" autoStart="true" startLevel="0" />
+ <plugin id="org.eclipse.rap.demo" autoStart="true" startLevel="0" />
+ <plugin id="org.eclipse.rap.demo.databinding" autoStart="true" startLevel="0" />
+ <plugin id="org.eclipse.rap.design.example" autoStart="true" startLevel="0" />
+ <plugin id="org.eclipse.rap.jface" autoStart="true" startLevel="0" />
+ <plugin id="org.eclipse.rap.jface.databinding" autoStart="true" startLevel="0" />
+ <plugin id="org.eclipse.rap.rwt" autoStart="true" startLevel="0" />
+ <plugin id="org.eclipse.rap.ui" autoStart="true" startLevel="0" />
+ <plugin id="org.eclipse.rap.ui.forms" autoStart="true" startLevel="0" />
+ <plugin id="org.eclipse.rap.ui.views" autoStart="true" startLevel="0" />
+ <plugin id="org.eclipse.rap.ui.workbench" autoStart="true" startLevel="0" />
+ </configurations>
+
+ <warConfiguration webXml="/com.eclipsesource.maildemo.warproducts/WEB-INF/web.xml" launchIni="/com.eclipsesource.maildemo.warproducts/WEB-INF/launch.ini">
+ <libraries>
+ <library path="org.eclipse.equinox.servletbridge_1.2.0.v20100503.jar" fromTarget="true"/>
+ </libraries>
+ </warConfiguration>
+</product>

0 comments on commit a89f0ae

Please sign in to comment.