blob: 870de685c11f7f7da09b2b089b7151c40ea62529 (
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
83
84
85
86
87
88
89
90
91
92
93
|
<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>org.eclipse.papyrusrt.installer.releng</artifactId>
<groupId>org.eclipse.papyrusrt</groupId>
<version>0.9.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<artifactId>org.eclipse.papyrusrt.installer.product</artifactId>
<version>0.10.0-SNAPSHOT</version>
<name>Papyrus-RT Installer Product</name>
<packaging>eclipse-repository</packaging>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-repository-plugin</artifactId>
<configuration>
<!-- The installer needs to be self-contained. -->
<includeAllDependencies>true</includeAllDependencies>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-director-plugin</artifactId>
<executions>
<execution>
<id>materialize-products</id>
<goals>
<goal>materialize-products</goal>
</goals>
<configuration>
<profile>DefaultProfile</profile>
<products>
<product>
<id>org.eclipse.papyrusrt.installer.product</id>
<rootFolders>
<linux>papyrus-rt-installer</linux>
<macosx>Papyrus-RT Installer.app</macosx>
</rootFolders>
</product>
</products>
</configuration>
</execution>
<execution>
<id>archive-products</id>
<goals>
<goal>archive-products</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>fix-archives</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<!-- Get the qualified product version number. -->
<loadproperties srcfile="target/p2content.xml">
<filterchain>
<!-- Look for the product IU declaration -->
<linecontainsregexp>
<regexp pattern="<unit id='org\.eclipse\.papyrusrt\.installer\.product' version"/>
</linecontainsregexp>
<!-- Take only the first match -->
<headfilter lines="1"/>
<!-- And extract the version number -->
<replaceregex pattern=".*version='([^']+)'.*" replace="product.version=\1"/>
<trim/>
</filterchain>
</loadproperties>
<!-- Write the build version for scripts to find -->
<echo file="target/buildver.txt">${product.version}</echo>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
|