Add source features for all plugins

Change-Id: I1144a19d569ac0403ccaf367d5bb778bdd283024
diff --git a/examples/org.eclipse.graphiti.doc/build.properties b/examples/org.eclipse.graphiti.doc/build.properties
index f0c1464..fd0a4a6 100644
--- a/examples/org.eclipse.graphiti.doc/build.properties
+++ b/examples/org.eclipse.graphiti.doc/build.properties
@@ -25,8 +25,7 @@
                javadoc/,\
                toc_concepts.xml
 jars.compile.order = .
-src.includes = api/,\
-               toc_graphiti.xml,\
+src.includes = toc_graphiti.xml,\
                toc.xml,\
                resources/,\
                about.html,\
diff --git a/features/org.eclipse.graphiti.feature.examples/pom.xml b/features/org.eclipse.graphiti.feature.examples/pom.xml
index 657e819..c9f4c7e 100644
--- a/features/org.eclipse.graphiti.feature.examples/pom.xml
+++ b/features/org.eclipse.graphiti.feature.examples/pom.xml
@@ -13,4 +13,37 @@
 	<name>Graphiti Examples Feature</name>

 	<artifactId>org.eclipse.graphiti.feature.examples</artifactId>

 	<packaging>eclipse-feature</packaging>

+

+	<build>

+		<plugins>

+			<plugin>

+				<groupId>org.eclipse.tycho.extras</groupId>

+				<artifactId>tycho-source-feature-plugin</artifactId>

+				<version>${tycho-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>
\ No newline at end of file
diff --git a/features/org.eclipse.graphiti.feature.examples/sourceTemplateFeature/.gitkeep b/features/org.eclipse.graphiti.feature.examples/sourceTemplateFeature/.gitkeep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/features/org.eclipse.graphiti.feature.examples/sourceTemplateFeature/.gitkeep
diff --git a/features/org.eclipse.graphiti.feature.tools/pom.xml b/features/org.eclipse.graphiti.feature.tools/pom.xml
index 8e3ebb0..fc05505 100644
--- a/features/org.eclipse.graphiti.feature.tools/pom.xml
+++ b/features/org.eclipse.graphiti.feature.tools/pom.xml
@@ -13,4 +13,37 @@
 	<name>Graphiti Tools Feature</name>

 	<artifactId>org.eclipse.graphiti.feature.tools</artifactId>

 	<packaging>eclipse-feature</packaging>

+

+	<build>

+		<plugins>

+			<plugin>

+				<groupId>org.eclipse.tycho.extras</groupId>

+				<artifactId>tycho-source-feature-plugin</artifactId>

+				<version>${tycho-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>
\ No newline at end of file
diff --git a/features/org.eclipse.graphiti.feature.tools/sourceTemplateFeature/.gitkeep b/features/org.eclipse.graphiti.feature.tools/sourceTemplateFeature/.gitkeep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/features/org.eclipse.graphiti.feature.tools/sourceTemplateFeature/.gitkeep
diff --git a/features/org.eclipse.graphiti.feature/pom.xml b/features/org.eclipse.graphiti.feature/pom.xml
index 3f81161..851ec12 100644
--- a/features/org.eclipse.graphiti.feature/pom.xml
+++ b/features/org.eclipse.graphiti.feature/pom.xml
@@ -13,4 +13,37 @@
 	<name>Graphiti Feature</name>

 	<artifactId>org.eclipse.graphiti.feature</artifactId>

 	<packaging>eclipse-feature</packaging>

+

+	<build>

+		<plugins>

+			<plugin>

+				<groupId>org.eclipse.tycho.extras</groupId>

+				<artifactId>tycho-source-feature-plugin</artifactId>

+				<version>${tycho-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>
\ No newline at end of file
diff --git a/features/org.eclipse.graphiti.feature/sourceTemplateFeature/.gitkeep b/features/org.eclipse.graphiti.feature/sourceTemplateFeature/.gitkeep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/features/org.eclipse.graphiti.feature/sourceTemplateFeature/.gitkeep
diff --git a/features/org.eclipse.graphiti.sdk.feature/feature.xml b/features/org.eclipse.graphiti.sdk.feature/feature.xml
index f8075a7..12f7c5c 100644
--- a/features/org.eclipse.graphiti.sdk.feature/feature.xml
+++ b/features/org.eclipse.graphiti.sdk.feature/feature.xml
@@ -43,7 +43,7 @@
          version="0.0.0"/>
 
    <includes
-         id="org.eclipse.graphiti.source.feature"
+         id="org.eclipse.graphiti.feature.source"
          version="0.0.0"/>
 
    <includes
diff --git a/parent/pom.xml b/parent/pom.xml
index a01c581..b63ad5f 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -118,6 +118,19 @@
 					<format>yyyyMMddHHmm</format>

 				</configuration>

 			</plugin>

+			<plugin>

+				<groupId>org.eclipse.tycho</groupId>

+				<artifactId>tycho-source-plugin</artifactId>

+				<version>${tycho-version}</version>

+				<executions>

+					<execution>

+						<id>plugin-source</id>

+						<goals>

+							<goal>plugin-source</goal>

+						</goals>

+					</execution>

+				</executions>

+			</plugin>

 		</plugins>

 	</build>

 </project>
\ No newline at end of file