diff options
author | Marc Khouzam | 2014-09-25 21:34:05 +0000 |
---|---|---|
committer | Marc Khouzam | 2015-01-13 20:04:13 +0000 |
commit | 16886a1f2a6c47c25cbc42f7495a27fa0411c9ae (patch) | |
tree | 9994acc83d483382244552352bdf18c028f29d15 /releng/org.eclipse.cdt.repo/pom.xml | |
parent | 49997a17b32d3165deb33831ca8009f0f02e7ddf (diff) | |
download | org.eclipse.cdt-16886a1f2a6c47c25cbc42f7495a27fa0411c9ae.tar.gz org.eclipse.cdt-16886a1f2a6c47c25cbc42f7495a27fa0411c9ae.tar.xz org.eclipse.cdt-16886a1f2a6c47c25cbc42f7495a27fa0411c9ae.zip |
Bug 445128 - Enable the use of p2 mirrors for CDT releases
Note that <repo-path> will need to be changed at release time to point
to the release location, which will probably be "tools/cdt/releases/8.6"
Change-Id: I0a89c8807a435ac348f4f28f2442d27668248cfc
Reviewed-on: https://git.eclipse.org/r/33992
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
Diffstat (limited to 'releng/org.eclipse.cdt.repo/pom.xml')
-rw-r--r-- | releng/org.eclipse.cdt.repo/pom.xml | 46 |
1 files changed, 28 insertions, 18 deletions
diff --git a/releng/org.eclipse.cdt.repo/pom.xml b/releng/org.eclipse.cdt.repo/pom.xml index 93cb82f9016..ea4067b1600 100644 --- a/releng/org.eclipse.cdt.repo/pom.xml +++ b/releng/org.eclipse.cdt.repo/pom.xml @@ -23,28 +23,38 @@ <profile> <id>production</id> <properties> - <cdt-download-dir>/home/data/httpd/download.eclipse.org/tools/cdt/builds/master/nightly</cdt-download-dir> + <cdt-download-dir>/home/data/httpd/download.eclipse.org/${repo-path}</cdt-download-dir> </properties> <build> <plugins> <plugin> - <artifactId>maven-antrun-plugin</artifactId> - <version>1.7</version> - <executions> - <execution> - <phase>verify</phase> - <configuration> - <target> - <delete dir="${cdt-download-dir}"/> - <unzip src="target/org.eclipse.cdt.repo.zip" - dest="${cdt-download-dir}"/> - </target> - </configuration> - <goals> - <goal>run</goal> - </goals> - </execution> - </executions> + <artifactId>maven-antrun-plugin</artifactId> + <version>1.7</version> + <executions> + <execution> + <phase>verify</phase> + <configuration> + <target> + <!-- first modify the artifacts.jar file --> + <!-- note that our zip file is already generated and won't have nor needs this change --> + <copy file="p2.xsl" todir="${project.build.directory}"/> + <copy file="antArtifactsUpdater.xml" todir="${project.build.directory}"/> + <ant antfile="${project.build.directory}/antArtifactsUpdater.xml"/> + + <!-- now promote the update build to our download area --> + <delete dir="${cdt-download-dir}"/> + <copy includeemptydirs="false" todir="${cdt-download-dir}"> + <fileset dir="target/repository"> + <include name="**" /> + </fileset> + </copy> + </target> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> </plugin> </plugins> </build> |