Browse Source

Create source features by tycho and added them to category

benjamin.schwertfeger@gmail.com 13 years ago
parent
commit
0b7f519fe3

+ 34 - 38
de.itemis.xtext.utils/features/de.itemis.xtext.utils.gmf-feature/feature.xml

@@ -1,38 +1,34 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<feature
-      id="de.itemis.xtext.utils.gmf"
-      label="Xtext GMF Integration (XGI)"
-      version="1.0.0.qualifier"
-      provider-name="itemis AG">
-
-   <description>
-      %description
-   </description>
-
-   <copyright url="%copyrightURL">
-      %copyright
-   </copyright>
-
-   <license url="%licenseURL">
-      %license
-   </license>
-
-   <includes
-         id="de.itemis.xtext.utils.gmf.source"
-         version="0.0.0"/>
-
-   <requires>
-      <import plugin="org.eclipse.core.runtime" version="3.6.0" match="compatible"/>
-      <import plugin="org.eclipse.xtext.ui" version="2.0.0" match="compatible"/>
-      <import plugin="org.eclipse.gmf.runtime.diagram.ui" version="1.4.0" match="compatible"/>
-      <import feature="de.itemis.xtext.utils.jface" version="1.0.0" match="compatible"/>
-   </requires>
-
-   <plugin
-         id="de.itemis.xtext.utils.gmf"
-         download-size="0"
-         install-size="0"
-         version="0.0.0"
-         unpack="false"/>
-
-</feature>
+<?xml version="1.0" encoding="UTF-8"?>
+<feature
+      id="de.itemis.xtext.utils.gmf"
+      label="Xtext GMF Integration (XGI)"
+      version="1.0.0.qualifier"
+      provider-name="itemis AG">
+
+   <description>
+      %description
+   </description>
+
+   <copyright url="%copyrightURL">
+      %copyright
+   </copyright>
+
+   <license url="%licenseURL">
+      %license
+   </license>
+
+   <requires>
+      <import plugin="org.eclipse.core.runtime" version="3.6.0" match="compatible"/>
+      <import plugin="org.eclipse.xtext.ui" version="2.0.0" match="compatible"/>
+      <import plugin="org.eclipse.gmf.runtime.diagram.ui" version="1.4.0" match="compatible"/>
+      <import feature="de.itemis.xtext.utils.jface" version="1.0.0" match="compatible"/>
+   </requires>
+
+   <plugin
+         id="de.itemis.xtext.utils.gmf"
+         download-size="0"
+         install-size="0"
+         version="0.0.0"
+         unpack="false"/>
+
+</feature>

+ 33 - 0
de.itemis.xtext.utils/features/de.itemis.xtext.utils.gmf-feature/pom.xml

@@ -12,4 +12,37 @@
 	<artifactId>de.itemis.xtext.utils.gmf</artifactId>
 	<packaging>eclipse-feature</packaging>
 	<groupId>de.itemis.utils.features</groupId>
+	
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.eclipse.tycho.extras</groupId>
+				<artifactId>tycho-source-feature-plugin</artifactId>
+				<version>${tycho-extras-version}</version>
+				<executions>
+					<execution>
+						<id>source-feature</id>
+						<phase>package</phase>
+						<goals>
+							<goal>source-feature</goal>
+						</goals>
+					</execution>
+				</executions>
+			</plugin>
+			<plugin>
+				<groupId>org.eclipse.tycho</groupId>
+				<artifactId>tycho-p2-plugin</artifactId>
+				<version>${tycho-version}</version>
+				<executions>
+					<execution>
+						<id>attached-p2-metadata</id>
+						<phase>package</phase>
+						<goals>
+							<goal>p2-metadata</goal>
+						</goals>
+					</execution>
+				</executions>
+			</plugin>
+		</plugins>
+	</build>
 </project>