Add update site

In order to provide a p2 repository, we need an update site for Tycho.

Change-Id: I3ca1fa7b0b6f17dc91650ca62f2d8d4efb5554b4
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
diff --git a/org.eclipse.egit.pde-updatesite/.gitignore b/org.eclipse.egit.pde-updatesite/.gitignore
new file mode 100644
index 0000000..eb5a316
--- /dev/null
+++ b/org.eclipse.egit.pde-updatesite/.gitignore
@@ -0,0 +1 @@
+target
diff --git a/org.eclipse.egit.pde-updatesite/.project b/org.eclipse.egit.pde-updatesite/.project
new file mode 100644
index 0000000..b5bea00
--- /dev/null
+++ b/org.eclipse.egit.pde-updatesite/.project
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>org.eclipse.egit.pde-updatesite</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.pde.UpdateSiteBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.pde.UpdateSiteNature</nature>
+	</natures>
+</projectDescription>
diff --git a/org.eclipse.egit.pde-updatesite/.settings/org.eclipse.core.resources.prefs b/org.eclipse.egit.pde-updatesite/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000..4ec836b
--- /dev/null
+++ b/org.eclipse.egit.pde-updatesite/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,3 @@
+#Mon Aug 11 16:46:54 PDT 2008
+eclipse.preferences.version=1
+encoding/<project>=UTF-8
diff --git a/org.eclipse.egit.pde-updatesite/.settings/org.eclipse.core.runtime.prefs b/org.eclipse.egit.pde-updatesite/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000..4f21775
--- /dev/null
+++ b/org.eclipse.egit.pde-updatesite/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,3 @@
+#Mon Mar 24 18:55:44 EDT 2008
+eclipse.preferences.version=1
+line.separator=\n
diff --git a/org.eclipse.egit.pde-updatesite/assembly.xml b/org.eclipse.egit.pde-updatesite/assembly.xml
new file mode 100644
index 0000000..907a49c
--- /dev/null
+++ b/org.eclipse.egit.pde-updatesite/assembly.xml
@@ -0,0 +1,13 @@
+<assembly>
+  <id>site</id>
+  <formats>
+    <format>zip</format>
+  </formats>
+  <includeBaseDirectory>false</includeBaseDirectory>
+  <fileSets>
+    <fileSet>
+      <directory>${project.build.directory}/site</directory>
+      <outputDirectory>/</outputDirectory>
+    </fileSet>
+  </fileSets>
+</assembly>
diff --git a/org.eclipse.egit.pde-updatesite/index.html b/org.eclipse.egit.pde-updatesite/index.html
new file mode 100644
index 0000000..ba5f550
--- /dev/null
+++ b/org.eclipse.egit.pde-updatesite/index.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>Eclipse EGit PDE Software Repository</title>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<meta name="author" content="Eclipse EGit Project" />
+<link rel="stylesheet" type="text/css" href="/eclipse/eclipse.org-common/stylesheets/visual.css" media="screen" />
+<link rel="stylesheet" type="text/css" href="/eclipse/eclipse.org-common/stylesheets/layout.css" media="screen" />
+</head>
+<body>
+<div id="header">
+<a href="http://www.eclipse.org/"><img src="/eclipse/eclipse.org-common/stylesheets/header_logo.gif" width="163" height="68" border="0" alt="Eclipse Logo" class="logo" /></a>
+</div>
+<div id="midcolumn">
+
+<p>This software repository URL
+<b><script type="text/javascript">
+<!--
+  document.write(document.URL);
+// -->
+</script></b>
+provides access to the software repository of the
+<a href="http://www.eclipse.org/egit/">Eclipse EGit project</a>.
+
+<p>
+<b>Compatibility: </b>This version of EGit supports Eclipse 3.5.2 (Galileo SR2) or later.</p>
+</p>
+
+<p>For more information about installing or updating software, see the
+<a href="http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.user/tasks/tasks-124.htm">Eclipse Platform Help</a>.</p>
+
+</div>
+</body>
+</html>
diff --git a/org.eclipse.egit.pde-updatesite/pom.xml b/org.eclipse.egit.pde-updatesite/pom.xml
new file mode 100644
index 0000000..f2c00f7
--- /dev/null
+++ b/org.eclipse.egit.pde-updatesite/pom.xml
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Copyright (C) 2010, Chris Aniszczyk <caniszczyk@gmail.com>
+
+   All rights reserved. This program and the accompanying materials
+   are made available under the terms of the Eclipse Public License v1.0
+   which accompanies this distribution, and is available at
+   http://www.eclipse.org/legal/epl-v10.html
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.eclipse.egit.pde</groupId>
+    <artifactId>egit-pde-parent</artifactId>
+    <version>0.10.0-SNAPSHOT</version>
+  </parent>
+
+  <artifactId>org.eclipse.egit.pde-updatesite</artifactId>
+  <packaging>eclipse-update-site</packaging>
+
+  <name>Git Support for PDE Build Update Site (Incubation)</name>
+  <!-- see http://issues.sonatype.org/browse/TYCHO-313 -->
+  <version>0.10.0-SNAPSHOT</version>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <version>2.2-beta-4</version>
+        <configuration>
+          <descriptors>
+            <descriptor>assembly.xml</descriptor>
+          </descriptors>
+        </configuration>
+        <executions>
+          <execution>
+            <id>make-assembly</id>
+            <phase>package</phase>
+            <goals>
+              <goal>single</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+
+      <plugin>
+        <artifactId>maven-resources-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>copy-resources</id>
+            <phase>validate</phase>
+            <goals>
+              <goal>copy-resources</goal>
+            </goals>
+            <configuration>
+              <outputDirectory>${basedir}/target/site</outputDirectory>
+              <resources>
+                <resource>
+                  <directory>.</directory>
+                  <includes>
+                    <include>index.html</include>
+	            <include>web/*</include>
+                  </includes>
+                </resource>
+              </resources>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+
+</project>
diff --git a/org.eclipse.egit.pde-updatesite/site.xml b/org.eclipse.egit.pde-updatesite/site.xml
new file mode 100644
index 0000000..a135040
--- /dev/null
+++ b/org.eclipse.egit.pde-updatesite/site.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<site>
+   <description url="Eclipse Git Plugin">
+	Git support for PDE Build.
+   </description>
+   <feature url="features/org.eclipse.egit.pde_0.0.0.qualifier.jar" id="org.eclipse.egit.pde" version="0.0.0" patch="false">
+      <category name="Git Fetch Factory for PDE Build (Incubation)"/>
+   </feature>
+   <category-def name="Git Fetch Factory for PDE Build (Incubation)" label="Git Fetch Factory for PDE Build (Incubation)">
+      <description>
+         Git Fetch Factory for PDE Build (Incubation)
+      </description>
+   </category-def>
+</site>
diff --git a/pom.xml b/pom.xml
index 3128702..2afcfc8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -78,6 +78,7 @@
     <module>org.eclipse.egit.fetchfactory</module>
 
     <module>org.eclipse.egit.pde-feature</module>
+    <module>org.eclipse.egit.pde-updatesite</module>
    </modules>
 
   <repositories>