Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/releng
diff options
context:
space:
mode:
authorLorenzo Bettini2014-07-06 17:55:08 +0000
committerLorenzo Bettini2014-07-06 17:55:08 +0000
commit69724cecbaf43ccb49fe61d0ff38fbc53a1e2281 (patch)
tree51b32db71b5cf2907ecb0346410bb3cbceeef5e8 /releng
parente559b29f7342bb8f450721f3c1f8714fc837f9c0 (diff)
downloadorg.eclipse.emf-parsley-69724cecbaf43ccb49fe61d0ff38fbc53a1e2281.tar.gz
org.eclipse.emf-parsley-69724cecbaf43ccb49fe61d0ff38fbc53a1e2281.tar.xz
org.eclipse.emf-parsley-69724cecbaf43ccb49fe61d0ff38fbc53a1e2281.zip
Ant commands to copy the p2 repository to root target folder
For easier archiving in CI systems. Change-Id: I024c7221dcbc8991520bd0c2fa2614301611f6e6
Diffstat (limited to 'releng')
-rw-r--r--releng/org.eclipse.emf.parsley.parent/pom.xml2
-rw-r--r--releng/org.eclipse.emf.parsley.rap.repository/pom.xml40
-rw-r--r--releng/org.eclipse.emf.parsley.repository/pom.xml40
3 files changed, 82 insertions, 0 deletions
diff --git a/releng/org.eclipse.emf.parsley.parent/pom.xml b/releng/org.eclipse.emf.parsley.parent/pom.xml
index e8ecc9e35..ab12baef7 100644
--- a/releng/org.eclipse.emf.parsley.parent/pom.xml
+++ b/releng/org.eclipse.emf.parsley.parent/pom.xml
@@ -35,6 +35,8 @@
<!-- <jacoco.reportPath>../target/jacoco.exec</jacoco.reportPath> -->
<!-- <findbugs.reportPath>../target/findbugs</findbugs.reportPath> -->
+
+ <p2.repository.dest>${project.basedir}/../../target/repository</p2.repository.dest>
<!-- Sonar -->
<sonar.language>java</sonar.language>
diff --git a/releng/org.eclipse.emf.parsley.rap.repository/pom.xml b/releng/org.eclipse.emf.parsley.rap.repository/pom.xml
index c24f4e7f7..315941227 100644
--- a/releng/org.eclipse.emf.parsley.rap.repository/pom.xml
+++ b/releng/org.eclipse.emf.parsley.rap.repository/pom.xml
@@ -12,4 +12,44 @@
<artifactId>org.eclipse.emf.parsley.rap.repository</artifactId>
<packaging>eclipse-repository</packaging>
+ <build>
+ <plugins>
+ <plugin>
+ <!-- copy the p2 repository into the project root folder
+ to allow for easier archiving in CI server -->
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>${maven-antrun-plugin.version}</version>
+ <executions>
+ <execution>
+ <id>copy-to-root-target</id>
+ <phase>package</phase>
+ <configuration>
+ <target>
+ <echo message="" />
+ <echo message="Repository path: ${project.build.directory}/repository" />
+ <echo message="Built version: ${unqualifiedVersion}.${buildQualifier}" />
+ <echo message="" />
+
+ <delete includeemptydirs="false" failonerror="false">
+ <fileset dir="${p2.repository.dest}">
+ <include name="**" />
+ </fileset>
+ </delete>
+ <copy includeemptydirs="false" todir="${p2.repository.dest}">
+ <fileset dir="target/repository">
+ <include name="**" />
+ </fileset>
+ </copy>
+ </target>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ </plugins>
+ </build>
+
</project> \ No newline at end of file
diff --git a/releng/org.eclipse.emf.parsley.repository/pom.xml b/releng/org.eclipse.emf.parsley.repository/pom.xml
index 37cd52d24..76ab0dc13 100644
--- a/releng/org.eclipse.emf.parsley.repository/pom.xml
+++ b/releng/org.eclipse.emf.parsley.repository/pom.xml
@@ -12,4 +12,44 @@
<artifactId>org.eclipse.emf.parsley.repository</artifactId>
<packaging>eclipse-repository</packaging>
+ <build>
+ <plugins>
+ <plugin>
+ <!-- copy the p2 repository into the project root folder
+ to allow for easier archiving in CI server -->
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>${maven-antrun-plugin.version}</version>
+ <executions>
+ <execution>
+ <id>copy-to-root-target</id>
+ <phase>package</phase>
+ <configuration>
+ <target>
+ <echo message="" />
+ <echo message="Repository path: ${project.build.directory}/repository" />
+ <echo message="Built version: ${unqualifiedVersion}.${buildQualifier}" />
+ <echo message="" />
+
+ <delete includeemptydirs="false" failonerror="false">
+ <fileset dir="${p2.repository.dest}">
+ <include name="**" />
+ </fileset>
+ </delete>
+ <copy includeemptydirs="false" todir="${p2.repository.dest}">
+ <fileset dir="target/repository">
+ <include name="**" />
+ </fileset>
+ </copy>
+ </target>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ </plugins>
+ </build>
+
</project> \ No newline at end of file

Back to the top