Make Argeo Distribution multi-modules
[gpl/argeo-tp.git] / org.argeo.tp.factory.core / META-INF / spring / eclipse.rcp.e4.xml
diff --git a/org.argeo.tp.factory.core/META-INF/spring/eclipse.rcp.e4.xml b/org.argeo.tp.factory.core/META-INF/spring/eclipse.rcp.e4.xml
new file mode 100644 (file)
index 0000000..f67aa01
--- /dev/null
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:p="http://www.springframework.org/schema/p"
+       xmlns:util="http://www.springframework.org/schema/util"
+       xmlns:flow="http://www.argeo.org/schema/slc-flow"
+       xsi:schemaLocation="
+       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
+       http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd
+       http://www.argeo.org/schema/slc-flow http://www.argeo.org/schema/slc-flow-0.12.xsd">
+
+       <flow:flow name="eclipse/org.argeo.tp.rcp.e4"
+               parent="template.eclipseRcp">
+               <flow:arg name="version" value="4.13" />
+               <flow:arg name="release" value="R-4.13-201909161045" />
+       </flow:flow>
+
+       <bean id="org.eclipse.jface.text" parent="template.eclipseMaven"
+               p:sourceCoords="org.eclipse.platform:org.eclipse.jface.text:3.15.300" />
+       <bean id="org.eclipse.text" parent="template.eclipseMaven"
+               p:sourceCoords="org.eclipse.platform:org.eclipse.text:3.9.0" />
+
+       <!-- RCP specs and templates -->
+       <flow:spec id="spec.eclipseRcp">
+               <flow:primitive name="version" isParameter="true" />
+               <flow:primitive name="release" isParameter="true" />
+       </flow:spec>
+
+       <flow:flow id="template.eclipseRcp" spec="spec.eclipseRcp"
+               abstract="true">
+               <!-- RCP (platform + OS specific binaries) -->
+               <bean class="org.argeo.slc.repo.osgi.ArchiveWrapper">
+                       <property name="version" value="@{version}" />
+                       <property name="uri"
+                               value="http://www.eclipse.org/downloads/eclipse/downloads/drops4/@{release}/org.eclipse.rcp.source-@{version}.zip" />
+                       <property name="includes">
+                               <map>
+                                       <entry key="plugins/*.jar" value="org.argeo.tp.rcp.e4" />
+                               </map>
+                       </property>
+                       <property name="osgiFactory" ref="osgiFactory" />
+               </bean>
+       </flow:flow>
+
+       <bean id="template.eclipseMaven" parent="template.mavenWrapper"
+               abstract="true">
+               <property name="groupId" value="org.argeo.tp.rcp.e4" />
+               <property name="license">
+                       <util:constant
+                               static-field="org.argeo.slc.repo.FreeLicense.EPL" />
+               </property>
+               <property name="doNotModify" value="true" />
+       </bean>
+
+</beans>
\ No newline at end of file