Skip to main content
summaryrefslogtreecommitdiffstats
blob: 34b08463124b91b7feb0b5336a97242e849ab6a7 (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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<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/maven-v4_0_0.xsd">

	<modelVersion>4.0.0</modelVersion>

	<groupId>org.eclipse.osee</groupId>
	<artifactId>org.eclipse.osee.extras</artifactId>
	<packaging>pom</packaging>
	<name>OSEE EXTRAS</name>
	<version>0.15.0-SNAPSHOT</version>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

		<workspace-root-path>${project.build.directory}/../../../../..</workspace-root-path>

		<maven-antrun-version>1.6</maven-antrun-version>
		<ant-contrib-version>1.0b3</ant-contrib-version>
		<jsch-version>0.1.42</jsch-version>
		<ant-jsch-version>1.8.2</ant-jsch-version>
		<ant-commons-net-version>1.7.0</ant-commons-net-version>
		<commons-net-version>1.4.1</commons-net-version>

		<eclipse-ip-site-version>1.0.0.v201308231617-DEV</eclipse-ip-site-version>
		<external-eclipse-ip-site>http://osee-external.googlecode.com/files/org.eclipse.ip.p2-${eclipse-ip-site-version}.zip</external-eclipse-ip-site>
		<skip-download-if-exists>true</skip-download-if-exists>
	</properties>

	<build>
		<sourceDirectory>src</sourceDirectory>
		<plugins>
			<plugin>
				<artifactId>maven-antrun-plugin</artifactId>
				<version>${maven-antrun-version}</version>
				<executions>
					<execution>
						<id>build-osee-server</id>
						<phase>validate</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<target>
								<property name="plugin_classpath" refid="maven.plugin.classpath" />
								<taskdef resource="net/sf/antcontrib/antlib.xml">
									<classpath>
										<pathelement path="${classpath}" />
										<pathelement path="${plugin_classpath}" />
									</classpath>
								</taskdef>
								<property environment="env" />
								<if>
									<isset property="http.proxyHost" />
									<then>
										<echo message="Set Proxy: [${http.proxyHost}:${http.proxyPort}]" />
										<echo message="Exclude ProxyHosts: [${http.nonProxyHosts}]" />
										<setproxy nonproxyhosts="${http.nonProxyHosts}"
											proxyhost="${http.proxyHost}" proxyport="${http.proxyPort}" />
									</then>
								</if>

								<property name="ip-site-base-repo-path"
									value="${workspace-root-path}/org.eclipse.ip/org.eclipse.ip.p2/target" />
								<property name="ip-site-repo-path" value="${ip-site-base-repo-path}/repository" />
								<property name="ip-site-zip-path"
									value="${ip-site-base-repo-path}/org.eclipse.ip.p2-${eclipse-ip-site-version}.zip" />

								<echo
									message="Setting up Eclipse IP Repo from: [${external-eclipse-ip-site}]" />
								<echo
									message="                            to: [${ip-site-base-repo-path}]" />

								<delete dir="${ip-site-repo-path}" />
								<mkdir dir="${ip-site-repo-path}" />
								<get src="${external-eclipse-ip-site}" dest="${ip-site-zip-path}"
									skipexisting="${skip-download-if-exists}" />
								<unzip src="${ip-site-zip-path}" dest="${ip-site-repo-path}"
									overwrite="true" />
							</target>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-antrun-plugin</artifactId>
					<version>${maven-antrun-version}</version>
					<dependencies>
						<dependency>
							<groupId>ant-contrib</groupId>
							<artifactId>ant-contrib</artifactId>
							<version>${ant-contrib-version}</version>
							<exclusions>
								<exclusion>
									<groupId>ant</groupId>
									<artifactId>ant</artifactId>
								</exclusion>
							</exclusions>
						</dependency>
						<dependency>
							<groupId>com.jcraft</groupId>
							<artifactId>jsch</artifactId>
							<version>${jsch-version}</version>
						</dependency>
						<dependency>
							<groupId>org.apache.ant</groupId>
							<artifactId>ant-jsch</artifactId>
							<version>${ant-jsch-version}</version>
						</dependency>
						<dependency>
							<groupId>commons-net</groupId>
							<artifactId>commons-net</artifactId>
							<version>${commons-net-version}</version>
						</dependency>
						<dependency>
							<groupId>org.apache.ant</groupId>
							<artifactId>ant-commons-net</artifactId>
							<version>${ant-commons-net-version}</version>
						</dependency>
					</dependencies>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>
</project>

Back to the top