blob: 1218d4b78ea9d79948933c0765b40e4f30fef8d1 [file] [log] [blame]
Bogdan Gheorghe56f15f02013-01-08 16:37:53 -05001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3###############################################################################
Silenio Quarti16c85ca2013-02-25 12:32:30 -05004# Copyright (c) 2012, 2013 Red Hat, Inc and others.
Bogdan Gheorghe56f15f02013-01-08 16:37:53 -05005# All rights reserved. This program and the accompanying materials
6# are made available under the terms of the Eclipse Public License v1.0
7# which accompanies this distribution, and is available at
8# http://www.eclipse.org/legal/epl-v10.html
9#
10# Contributors:
11# Krzysztof Daniel, Red Hat, Inc and others. - initial API and implementation
12###############################################################################
13-->
Silenio Quarti291e6d22013-03-27 12:25:35 -040014<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">
Bogdan Gheorghe56f15f02013-01-08 16:37:53 -050015 <modelVersion>4.0.0</modelVersion>
16 <parent>
17 <artifactId>binaries-parent</artifactId>
18 <groupId>eclipse.platform.swt.binaries</groupId>
Silenio Quarti291e6d22013-03-27 12:25:35 -040019 <version>4.3.0-SNAPSHOT</version>
Bogdan Gheorghe56f15f02013-01-08 16:37:53 -050020 <relativePath>../binaries-parent/</relativePath>
21 </parent>
Silenio Quarti16c85ca2013-02-25 12:32:30 -050022 <groupId>org.eclipse.swt</groupId>
Bogdan Gheorghe56f15f02013-01-08 16:37:53 -050023 <artifactId>org.eclipse.swt.photon.qnx.x86</artifactId>
24 <version>3.7.0-SNAPSHOT</version>
25 <packaging>eclipse-plugin</packaging>
26
27 <properties>
28 <os>qnx</os>
29 <ws>photon</ws>
30 <arch>x86</arch>
Thanh Ha262b84f2012-11-22 16:56:14 -050031 <buildid>${buildId}</buildid>
Bogdan Gheorghe56f15f02013-01-08 16:37:53 -050032 </properties>
33
34 <!--dependencies>
35 <dependency>
36 <groupId>eclipse.platform.swt.binaries</groupId>
37 <artifactId>binaries-parent</artifactId>
38 <version>1.0</version>
39 <type>pom</type>
40 </dependency>
41 </dependencies-->
42
Thanh Ha262b84f2012-11-22 16:56:14 -050043 <build>
44 <plugins>
45 <plugin>
46 <artifactId>maven-antrun-plugin</artifactId>
47 <version>1.7</version>
48 <executions>
49 <execution>
50 <id>swtdownload</id>
51 <phase>package</phase>
52 <configuration>
53 <target>
Silenio Quarti291e6d22013-03-27 12:25:35 -040054 <ant antfile="build.xml" target="swtdownload"/>
Thanh Ha262b84f2012-11-22 16:56:14 -050055 </target>
56 </configuration>
57 <goals>
58 <goal>run</goal>
59 </goals>
60 </execution>
Silenio Quartif43267a2013-02-13 11:38:52 -050061 <execution>
62 <id>copy-swtzip-to-target</id>
63 <phase>package</phase>
64 <goals>
65 <goal>run</goal>
66 </goals>
67 <configuration>
68 <target>
Silenio Quarti291e6d22013-03-27 12:25:35 -040069 <move file="swt-${buildId}-${ws}-${os}-${arch}.zip" todir="target"/>
Silenio Quartif43267a2013-02-13 11:38:52 -050070 </target>
71 </configuration>
72 </execution>
Thanh Ha262b84f2012-11-22 16:56:14 -050073 </executions>
74 <dependencies>
75 <dependency>
76 <groupId>com.sun</groupId>
77 <artifactId>tools</artifactId>
78 <version>0.0.0</version>
79 <scope>system</scope>
Silenio Quartice653cc2013-01-25 12:44:42 -050080 <systemPath>${toolsjar}</systemPath>
Thanh Ha262b84f2012-11-22 16:56:14 -050081 </dependency>
82 <dependency>
83 <groupId>bsf</groupId>
84 <artifactId>bsf</artifactId>
85 <version>2.4.0</version>
86 </dependency>
87 <dependency>
88 <groupId>rhino</groupId>
89 <artifactId>js</artifactId>
90 <version>1.7R2</version>
91 </dependency>
92 <dependency>
93 <groupId>org.apache.ant</groupId>
94 <artifactId>ant-apache-bsf</artifactId>
95 <version>1.8.3</version>
96 </dependency>
97 <dependency>
98 <groupId>org.apache.ant</groupId>
99 <artifactId>ant-nodeps</artifactId>
100 <version>1.8.1</version>
101 </dependency>
102 </dependencies>
103 </plugin>
Thanh Ha262b84f2012-11-22 16:56:14 -0500104 </plugins>
105 </build>
106
Bogdan Gheorghe56f15f02013-01-08 16:37:53 -0500107 <!-- This has to be here. Profiles are not inheritable. -->
108 <profiles>
109 <profile>
110 <id>build-natives</id>
111 <activation>
112 <property>
113 <!-- This has to be hardcoded. Profiles are not allowed to use pom defined properties :-( -->
114 <name>native</name>
115 <value>photon.qnx.x86</value>
116 </property>
117 </activation>
118 <build>
119 <plugins>
120 <plugin>
121 <artifactId>maven-antrun-plugin</artifactId>
122 <version>1.7</version>
123 <executions>
124 <execution>
125 <id>natives</id>
126 <phase>process-resources</phase>
127 <configuration>
128 <target>
Silenio Quarti291e6d22013-03-27 12:25:35 -0400129 <ant antfile="build.xml" target="build_libraries"/>
Bogdan Gheorghe56f15f02013-01-08 16:37:53 -0500130 </target>
131 </configuration>
132 <goals>
133 <goal>run</goal>
134 </goals>
135 </execution>
136 </executions>
137 <dependencies>
138 <dependency>
139 <groupId>bsf</groupId>
140 <artifactId>bsf</artifactId>
141 <version>2.4.0</version>
142 </dependency>
143 <dependency>
144 <groupId>rhino</groupId>
145 <artifactId>js</artifactId>
146 <version>1.7R2</version>
147 </dependency>
148 <dependency>
149 <groupId>org.apache.ant</groupId>
150 <artifactId>ant-apache-bsf</artifactId>
151 <version>1.8.3</version>
152 </dependency>
153 <dependency>
154 <groupId>org.apache.ant</groupId>
155 <artifactId>ant-nodeps</artifactId>
156 <version>1.8.1</version>
157 </dependency>
158 </dependencies>
159 </plugin>
160 </plugins>
161 </build>
162 </profile>
163 </profiles>
164</project>