copy zipped p2 site

Change-Id: I05be727f4c7cba42ee79582caf884cca7037dd8f
diff --git a/releng/org.eclipse.emf.parsley.parent/pom.xml b/releng/org.eclipse.emf.parsley.parent/pom.xml
index d8123ef..c119f70 100644
--- a/releng/org.eclipse.emf.parsley.parent/pom.xml
+++ b/releng/org.eclipse.emf.parsley.parent/pom.xml
@@ -88,8 +88,10 @@
 		
 		<parsley.download.area>/home/data/httpd/download.eclipse.org/emf-parsley</parsley.download.area>
 		<parsley.updates.dir>updates</parsley.updates.dir>
+		<parsley.zips.dir>zips</parsley.zips.dir>
 		<parsley.rap.updates.dir>rt</parsley.rap.updates.dir>
 		<p2.repository.dest>${project.basedir}/../../target/repository</p2.repository.dest>
+		<zipped.repository.dest>${project.basedir}/../../target/${parsley.zips.dir}</zipped.repository.dest>
 		
 		<!-- Enable this on Hudson CI @Eclipse.org -->
 		<cbi.jarsigner.skip>true</cbi.jarsigner.skip>
diff --git a/releng/org.eclipse.emf.parsley.repository/pom.xml b/releng/org.eclipse.emf.parsley.repository/pom.xml
index 44efbf0..49b9c91 100644
--- a/releng/org.eclipse.emf.parsley.repository/pom.xml
+++ b/releng/org.eclipse.emf.parsley.repository/pom.xml
@@ -55,6 +55,27 @@
 							<goal>run</goal>
 						</goals>
 					</execution>
+					<execution>
+						<id>copy-to-zips-target</id>
+						<phase>package</phase>
+						<configuration>
+							<target>
+								<echo message="" />
+								<echo message="Source path: ${project.build.directory}" />
+								<echo message="Built version: ${unqualifiedVersion}.${buildQualifier}" />
+								<echo message="" />
+
+								<copy includeemptydirs="false" todir="${zipped.repository.dest}">
+									<fileset dir="${project.build.directory}">
+										<include name="*.zip" />
+									</fileset>
+								</copy>
+							</target>
+						</configuration>
+						<goals>
+							<goal>run</goal>
+						</goals>
+					</execution>
 				</executions>
 			</plugin>
 		</plugins>
@@ -119,6 +140,35 @@
 							</execution>
 						</executions>
 					</plugin>
+
+					<plugin>
+						<!-- copy the zipped p2 repository into download zips area  -->
+						<artifactId>maven-antrun-plugin</artifactId>
+						<version>${maven-antrun-plugin.version}</version>
+						<executions>
+							<execution>
+								<id>copy-to-zips-download</id>
+								<phase>package</phase>
+								<configuration>
+									<target>
+										<echo message="" />
+										<echo message="Source path: ${project.build.directory}" />
+										<echo message="Built version: ${unqualifiedVersion}.${buildQualifier}" />
+										<echo message="" />
+		
+										<copy includeemptydirs="false" todir="${parsley.download.area}/${parsley.zips.dir}">
+											<fileset dir="${project.build.directory}">
+												<include name="*.zip" />
+											</fileset>
+										</copy>
+									</target>
+								</configuration>
+								<goals>
+									<goal>run</goal>
+								</goals>
+							</execution>
+						</executions>
+					</plugin>
 				</plugins>
 			</build>
 		</profile>