blob: 32f03c37e56e1ad13e9bda70f015455bad79d559 [file] [log] [blame]
Stephan Herrmann2feba952012-05-26 15:02:07 +02001<?xml version="1.0" encoding="UTF-8"?>
2<!--
Stephan Herrmann396f3342013-03-14 14:31:57 +01003 Copyright (c) 2012, 2013 Eclipse Foundation and others.
Stephan Herrmann2feba952012-05-26 15:02:07 +02004 All rights reserved. This program and the accompanying materials
5 are made available under the terms of the Eclipse Distribution License v1.0
6 which accompanies this distribution, and is available at
7 http://www.eclipse.org/org/documents/edl-v10.php
8
9 Contributors:
10 Igor Fedorenko - initial implementation
11-->
Stephan Herrmannc7600d82013-04-28 22:48:05 +020012<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">
Stephan Herrmann2feba952012-05-26 15:02:07 +020013 <modelVersion>4.0.0</modelVersion>
14 <parent>
15 <artifactId>eclipse.jdt.core</artifactId>
16 <groupId>eclipse.jdt.core</groupId>
Stephan Herrmann6a72b272013-07-14 17:29:27 +020017 <version>4.4.0-SNAPSHOT</version>
Stephan Herrmann2feba952012-05-26 15:02:07 +020018 </parent>
Stephan Herrmann396f3342013-03-14 14:31:57 +010019 <groupId>org.eclipse.jdt</groupId>
Stephan Herrmann2feba952012-05-26 15:02:07 +020020 <artifactId>org.eclipse.jdt.core</artifactId>
Stephan Herrmann6a72b272013-07-14 17:29:27 +020021 <version>3.10.0-SNAPSHOT</version>
Stephan Herrmann2feba952012-05-26 15:02:07 +020022 <packaging>eclipse-plugin</packaging>
23
Stephan Herrmann4c6c5002013-09-12 23:09:47 +020024 <properties>
25 <defaultSigning-excludeInnerJars>true</defaultSigning-excludeInnerJars>
26 </properties>
27
Stephan Herrmann2feba952012-05-26 15:02:07 +020028 <build>
29 <plugins>
Stephan Herrmann309166a2013-06-07 21:35:48 +020030 <plugin>
31 <artifactId>maven-antrun-plugin</artifactId>
32 <executions>
33 <execution>
34 <phase>prepare-package</phase>
35 <configuration>
36 <tasks>
37 <replace token="bundle_qualifier," value="${buildQualifier}," dir="${project.build.directory}/classes">
Stephan Herrmann6a72b272013-07-14 17:29:27 +020038 <include name="org/eclipse/jdt/internal/compiler/batch/messages.properties"/>
Stephan Herrmann309166a2013-06-07 21:35:48 +020039 </replace>
Stephan Herrmann1002fa42013-12-17 17:50:02 +010040 <replace token="bundle_version" value="${unqualifiedVersion}" dir="${project.build.directory}/classes">
41 <include name="org/eclipse/jdt/internal/compiler/batch/messages.properties" />
42 </replace>
Stephan Herrmann309166a2013-06-07 21:35:48 +020043 </tasks>
44 </configuration>
45 <goals>
46 <goal>run</goal>
47 </goals>
48 </execution>
49 </executions>
50 </plugin>
Stephan Herrmann2feba952012-05-26 15:02:07 +020051 <plugin>
Stephan Herrmann1002fa42013-12-17 17:50:02 +010052 <artifactId>maven-resources-plugin</artifactId>
53 <version>2.6</version>
54 <executions>
55 <execution>
56 <id>copy-batch-compiler-source</id>
57 <phase>package</phase>
58 <goals>
59 <goal>copy-resources</goal>
60 </goals>
61 <configuration>
62 <outputDirectory>${project.build.directory}/scripts/source</outputDirectory>
63 <resources>
64 <resource>
65 <directory>${project.basedir}/scripts/source</directory>
66 <filtering>true</filtering>
67 </resource>
68 </resources>
69 </configuration>
70 </execution>
71 </executions>
72 </plugin>
73 <plugin>
Stephan Herrmann2feba952012-05-26 15:02:07 +020074 <groupId>org.eclipse.tycho.extras</groupId>
75 <artifactId>tycho-custom-bundle-plugin</artifactId>
Stephan Herrmann1002fa42013-12-17 17:50:02 +010076 <version>${tycho-extras.version}</version>
Stephan Herrmann2feba952012-05-26 15:02:07 +020077 <executions>
78 <execution>
79 <id>antadapter</id>
80 <phase>package</phase>
81 <goals>
82 <goal>custom-bundle</goal>
83 </goals>
Stephan Herrmann5d5db952013-05-18 21:56:53 +020084 <configuration>
85 <archive>
86 <addMavenDescriptor>false</addMavenDescriptor>
87 </archive>
Stephan Herrmann2feba952012-05-26 15:02:07 +020088 <bundleLocation>${project.basedir}/scripts/antadapter</bundleLocation>
89 <classifier>antadapter</classifier>
90 <fileSets>
91 <fileSet>
92 <directory>${project.build.directory}/jdtCompilerAdapter.jar-classes</directory>
93 <excludes>
94 <exclude>org/eclipse/jdt/core/CheckDebugAttributes*.*</exclude>
95 <exclude>org/eclipse/jdt/core/BuildJarIndex*.*</exclude>
96 </excludes>
97 </fileSet>
98 </fileSets>
99 </configuration>
100 </execution>
101 <execution>
Stephan Herrmann5d5db952013-05-18 21:56:53 +0200102 <id>batch-compiler-src</id>
103 <phase>package</phase>
104 <goals>
105 <goal>custom-bundle</goal>
106 </goals>
107 <configuration>
108 <archive>
109 <addMavenDescriptor>false</addMavenDescriptor>
110 </archive>
Stephan Herrmann1002fa42013-12-17 17:50:02 +0100111 <bundleLocation>${project.build.directory}/scripts/source</bundleLocation>
Stephan Herrmann5d5db952013-05-18 21:56:53 +0200112 <classifier>batch-compiler-src</classifier>
113 <fileSets>
114 <fileSet>
115 <directory>${project.basedir}/batch</directory>
116 </fileSet>
117 <fileSet>
118 <directory>${project.basedir}/compiler</directory>
119 </fileSet>
120 <fileSet>
121 <directory>${project.basedir}/antadapter</directory>
122 <excludes>
123 <exclude>org/eclipse/jdt/core/CheckDebugAttributes.java</exclude>
124 <exclude>org/eclipse/jdt/core/BuildJarIndex.java</exclude>
125 </excludes>
126 </fileSet>
127 <fileSet>
128 <directory>${project.basedir}/../org.eclipse.jdt.compiler.tool/src</directory>
129 </fileSet>
130 <fileSet>
131 <directory>${project.basedir}/../org.eclipse.jdt.compiler.apt/src</directory>
132 </fileSet>
133 <fileSet>
134 <directory>${project.basedir}/scripts</directory>
135 <includes>
136 <include>about.html</include>
137 <include>build.xml</include>
138 </includes>
139 </fileSet>
140 </fileSets>
141 </configuration>
142 </execution>
143 <execution>
Stephan Herrmann2feba952012-05-26 15:02:07 +0200144 <id>batch-compiler</id>
145 <phase>package</phase>
146 <goals>
147 <goal>custom-bundle</goal>
148 </goals>
149 <configuration>
Stephan Herrmann5d5db952013-05-18 21:56:53 +0200150 <archive>
151 <addMavenDescriptor>false</addMavenDescriptor>
152 </archive>
Stephan Herrmann2feba952012-05-26 15:02:07 +0200153 <bundleLocation>${project.basedir}/scripts/binary</bundleLocation>
154 <classifier>batch-compiler</classifier>
155 <fileSets>
156 <fileSet>
Stephan Herrmannc7600d82013-04-28 22:48:05 +0200157 <directory>${project.build.directory}/jdtCompilerAdapter.jar-classes</directory>
158 <includes>
159 <include>META-INF/eclipse.inf</include>
160 </includes>
161 </fileSet>
Stephan Herrmann5d5db952013-05-18 21:56:53 +0200162 <fileSet>
163 <directory>${project.basedir}/scripts</directory>
164 <includes>
165 <include>about.html</include>
166 </includes>
167 </fileSet>
Stephan Herrmannc7600d82013-04-28 22:48:05 +0200168 <fileSet>
Stephan Herrmann2feba952012-05-26 15:02:07 +0200169 <directory>${project.build.directory}/classes</directory>
170 <includes>
171 <include>org/eclipse/jdt/internal/compiler/**</include>
172 <include>org/eclipse/jdt/core/compiler/**</include>
173 </includes>
174 <excludes>
175 <exclude>**/package.htm*</exclude>
176 <exclude>org/eclipse/jdt/core/compiler/CompilationParticipant*.class</exclude>
177 <exclude>org/eclipse/jdt/core/compiler/BuildContext.class</exclude>
178 <exclude>org/eclipse/jdt/core/compiler/IScanner.class</exclude>
179 <exclude>org/eclipse/jdt/core/compiler/ITerminalSymbols*.class</exclude>
180 <exclude>org/eclipse/jdt/core/compiler/ReconcileContext*.class</exclude>
181 <exclude>org/eclipse/jdt/internal/compiler/DocumentElementParser*.class</exclude>
182 <exclude>org/eclipse/jdt/internal/compiler/IDocumentElementRequestor.class</exclude>
183 <exclude>org/eclipse/jdt/internal/compiler/ISourceElementRequestor*.class</exclude>
184 <exclude>org/eclipse/jdt/internal/compiler/SourceElementParser*.class</exclude>
185 <exclude>org/eclipse/jdt/internal/compiler/SourceElementRequestorAdapter*.class</exclude>
186 <exclude>org/eclipse/jdt/internal/compiler/SourceJavadocParser*.class</exclude>
187 <exclude>org/eclipse/jdt/internal/compiler/parser/SourceTypeConverter*.class</exclude>
188 </excludes>
189 </fileSet>
190 </fileSets>
191 </configuration>
192 </execution>
193 </executions>
194 </plugin>
195 <plugin>
196 <groupId>org.eclipse.tycho</groupId>
197 <artifactId>tycho-p2-plugin</artifactId>
198 <version>${tycho.version}</version>
Stephan Herrmann7941b7c2013-11-03 16:07:28 +0100199 <configuration>
200 <baselineMode>warn</baselineMode>
201 <baselineReplace>common</baselineReplace>
202 </configuration>
Stephan Herrmann2feba952012-05-26 15:02:07 +0200203 <executions>
204 <execution>
205 <id>attached-p2-metadata</id>
206 <phase>package</phase>
207 <goals>
208 <goal>p2-metadata</goal>
209 </goals>
210 </execution>
211 </executions>
212 </plugin>
213 </plugins>
214 </build>
215</project>