Skip to main content
summaryrefslogtreecommitdiffstats
blob: 272811a28639b1146a6fef340be5c3463993fbc4 (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
94
95
96
97
98
99
100
101
102
<?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.ptp.master</groupId>
	  <artifactId>org.eclipse.ptp.master</artifactId>
	  <version>7.0.5-SNAPSHOT</version>
	  <relativePath>../pom.xml</relativePath>
	</parent>

	<artifactId>org.eclipse.ptp-product</artifactId>
	<version>7.0.5-SNAPSHOT</version>
	<packaging>eclipse-repository</packaging>
	
	<profiles>
		<profile>
			<id>production</id>
			<build>
				<plugins>
					<plugin>
						<artifactId>maven-antrun-plugin</artifactId>
						<executions>
							<execution>
								<id>deploy</id>
								<phase>install</phase>
								<goals>
									<goal>run</goal>
								</goals>
								<configuration>
									<tasks>
										<copy file="${project.build.directory}/products/ptp-linux.gtk.x86.tar.gz"
											tofile="${ptp-install-dir}/ptp-linux-gtk-x86-${unqualifiedVersion}.tar.gz"/>
										<copy file="${project.build.directory}/products/ptp-linux.gtk.x86_64.tar.gz"
											tofile="${ptp-install-dir}/ptp-linux-gtk-x86_64-${unqualifiedVersion}.tar.gz"/>
										<copy file="${project.build.directory}/products/ptp-win32.win32.x86.zip"
											tofile="${ptp-install-dir}/ptp-win32-x86-${unqualifiedVersion}.zip"/>
										<copy file="${project.build.directory}/products/ptp-win32.win32.x86_64.zip"
											tofile="${ptp-install-dir}/ptp-win32-x86_64-${unqualifiedVersion}.zip"/>
										<copy file="${project.build.directory}/products/ptp-macosx.cocoa.x86_64.tar.gz"
											tofile="${ptp-install-dir}/ptp-macosx-cocoa-x86_64-${unqualifiedVersion}.tar.gz"/>
									</tasks>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
	
	<build>
		<plugins>
			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>tycho-p2-repository-plugin</artifactId>
				<version>${tycho-version}</version>
				<configuration>
					<createArtifactRepository>false</createArtifactRepository>
					<includeAllDependencies>true</includeAllDependencies>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>tycho-p2-director-plugin</artifactId>
				<version>${tycho-version}</version>
				<configuration>
					<formats>
						<win32>zip</win32>
						<linux>tar.gz</linux>
						<macosx>tar.gz</macosx>
					</formats>
					<products>
						<product>
							<id>ptp</id>
							<rootFolder>eclipse</rootFolder>
							<rootFolders>
								<macosx>Eclipse.app</macosx>
							</rootFolders>
						</product>
					</products>
				</configuration>
				<executions>
					<execution>
						<id>materialize-products</id>
						<goals>
							<goal>materialize-products</goal>
						</goals>
					</execution>
					<execution>
						<id>archive-products</id>
						<phase>pre-integration-test</phase>
						<goals>
							<goal>archive-products</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>

Back to the top