blob: fc35ea7e121a71cc708747a37df2d7f2b70bb791 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
<?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse.cdt</groupId>
<artifactId>cdt-parent</artifactId>
<version>9.4.2-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<version>8.2.0-SNAPSHOT</version>
<artifactId>org.eclipse.cdt.repo</artifactId>
<packaging>eclipse-repository</packaging>
<build>
<finalName>${project.artifactId}</finalName>
</build>
<profiles>
<profile>
<id>production</id>
<properties>
<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.8</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>
<fileset dir="${cdt-download-dir}">
<exclude name="rcp*/**"/>
</fileset>
</delete>
<copy includeemptydirs="false" todir="${cdt-download-dir}">
<fileset dir="target/repository">
<include name="**" />
</fileset>
</copy>
<!-- remove the packed files from the zip file to make it smaller -->
<unzip src="target/org.eclipse.cdt.repo.zip" dest="target/tmp"/>
<delete file="target/org.eclipse.cdt.repo.zip"/>
<delete>
<fileset dir="target/tmp">
<include name="plugins/*.pack.gz"/>
</fileset>
</delete>
<zip destfile="target/org.eclipse.cdt.repo.zip">
<fileset dir="target/tmp">
<include name="**"/>
</fileset>
</zip>
<delete dir="target/tmp"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
|