Skip to main content
summaryrefslogtreecommitdiffstats
blob: 3c2f94732ad180e6bcb8bdcbb0dcbb01bda6401f (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
<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>

	<parent>
		<groupId>org.eclipse.osee</groupId>
		<artifactId>org.eclipse.osee.coverage.parent</artifactId>
		<version>0.16.0-SNAPSHOT</version>
		<relativePath>../../plugins/org.eclipse.osee.coverage.parent</relativePath>
	</parent>

	<artifactId>org.eclipse.osee.coverage.help.ui</artifactId>
	<packaging>eclipse-plugin</packaging>
	<name>OSEE Coverage Help (Incubation)</name>

	<build>
		<!-- workaround for https://issues.sonatype.org/browse/TYCHO-168 -->
		<resources>
			<resource>
				<directory>src</directory>
				<excludes>
					<exclude>**/*.java</exclude>
				</excludes>
			</resource>
		</resources>
		<plugins>
			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>tycho-source-plugin</artifactId>
			</plugin>
			<plugin>
				<artifactId>maven-antrun-plugin</artifactId>
				<version>${maven-antrun-version}</version>
				<executions>
					<execution>
						<id>help-clean-up</id>
						<phase>clean</phase>
						<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>

								<if>
									<equals arg1="${osee-create-help-docs}" arg2="true" />
									<then>
										<property name="compile_classpath" refid="maven.compile.classpath" />
										<delete dir="images" />
										<delete dir="OSEE" />
									</then>
								</if>
							</target>
						</configuration>
						<goals>
							<goal>run</goal>
						</goals>
					</execution>

					<execution>
						<id>help-build</id>
						<phase>generate-sources</phase>
						<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>

								<if>
									<equals arg1="${osee-create-help-docs}" arg2="true" />
									<then>

										<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="compile_classpath" refid="maven.compile.classpath" />
										<ant target="all" inheritRefs="true" antfile="build-helper.xml" />
									</then>
								</if>
							</target>
						</configuration>
						<goals>
							<goal>run</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

</project>

Back to the top