blob: 33d0d04f0cab02d83b3871f4cce4b0f75f8dc34c [file] [log] [blame]
Stephan Herrmann2feba952012-05-26 15:02:07 +02001<?xml version="1.0" encoding="UTF-8"?>
2<!--
Stephan Herrmann7c967d32016-08-02 21:34:11 +02003 Copyright (c) 2012, 2016 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 Herrmann7c967d32016-08-02 21:34:11 +020017 <version>4.7.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 Herrmann7c967d32016-08-02 21:34:11 +020021 <version>3.13.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">
Stephan Herrmann881bc142014-10-03 22:03:34 +020041 <include name="org/eclipse/jdt/internal/compiler/batch/messages.properties"/>
Stephan Herrmann1002fa42013-12-17 17:50:02 +010042 </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>
Stephan Herrmann1002fa42013-12-17 17:50:02 +010053 <executions>
54 <execution>
55 <id>copy-batch-compiler-source</id>
56 <phase>package</phase>
57 <goals>
58 <goal>copy-resources</goal>
59 </goals>
60 <configuration>
61 <outputDirectory>${project.build.directory}/scripts/source</outputDirectory>
62 <resources>
63 <resource>
64 <directory>${project.basedir}/scripts/source</directory>
65 <filtering>true</filtering>
66 </resource>
67 </resources>
68 </configuration>
69 </execution>
70 </executions>
71 </plugin>
72 <plugin>
Stephan Herrmann2feba952012-05-26 15:02:07 +020073 <groupId>org.eclipse.tycho.extras</groupId>
74 <artifactId>tycho-custom-bundle-plugin</artifactId>
Stephan Herrmann1002fa42013-12-17 17:50:02 +010075 <version>${tycho-extras.version}</version>
Stephan Herrmann2feba952012-05-26 15:02:07 +020076 <executions>
77 <execution>
78 <id>antadapter</id>
79 <phase>package</phase>
80 <goals>
81 <goal>custom-bundle</goal>
82 </goals>
Stephan Herrmann5d5db952013-05-18 21:56:53 +020083 <configuration>
84 <archive>
85 <addMavenDescriptor>false</addMavenDescriptor>
86 </archive>
Stephan Herrmann2feba952012-05-26 15:02:07 +020087 <bundleLocation>${project.basedir}/scripts/antadapter</bundleLocation>
88 <classifier>antadapter</classifier>
89 <fileSets>
90 <fileSet>
91 <directory>${project.build.directory}/jdtCompilerAdapter.jar-classes</directory>
92 <excludes>
93 <exclude>org/eclipse/jdt/core/CheckDebugAttributes*.*</exclude>
94 <exclude>org/eclipse/jdt/core/BuildJarIndex*.*</exclude>
95 </excludes>
96 </fileSet>
97 </fileSets>
98 </configuration>
99 </execution>
100 <execution>
Stephan Herrmann5d5db952013-05-18 21:56:53 +0200101 <id>batch-compiler-src</id>
102 <phase>package</phase>
103 <goals>
104 <goal>custom-bundle</goal>
105 </goals>
106 <configuration>
107 <archive>
108 <addMavenDescriptor>false</addMavenDescriptor>
109 </archive>
Stephan Herrmann1002fa42013-12-17 17:50:02 +0100110 <bundleLocation>${project.build.directory}/scripts/source</bundleLocation>
Stephan Herrmann5d5db952013-05-18 21:56:53 +0200111 <classifier>batch-compiler-src</classifier>
112 <fileSets>
113 <fileSet>
114 <directory>${project.basedir}/batch</directory>
115 </fileSet>
116 <fileSet>
117 <directory>${project.basedir}/compiler</directory>
118 </fileSet>
119 <fileSet>
120 <directory>${project.basedir}/antadapter</directory>
121 <excludes>
122 <exclude>org/eclipse/jdt/core/CheckDebugAttributes.java</exclude>
123 <exclude>org/eclipse/jdt/core/BuildJarIndex.java</exclude>
124 </excludes>
125 </fileSet>
126 <fileSet>
127 <directory>${project.basedir}/../org.eclipse.jdt.compiler.tool/src</directory>
128 </fileSet>
129 <fileSet>
130 <directory>${project.basedir}/../org.eclipse.jdt.compiler.apt/src</directory>
131 </fileSet>
132 <fileSet>
133 <directory>${project.basedir}/scripts</directory>
134 <includes>
135 <include>about.html</include>
136 <include>build.xml</include>
Stephan Herrmann35ce9502014-06-05 16:16:02 +0200137 <include>ecj.1</include>
Stephan Herrmann5d5db952013-05-18 21:56:53 +0200138 </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>
Stephan Herrmann35ce9502014-06-05 16:16:02 +0200166 <include>ecj.1</include>
Stephan Herrmann5d5db952013-05-18 21:56:53 +0200167 </includes>
168 </fileSet>
Stephan Herrmannc7600d82013-04-28 22:48:05 +0200169 <fileSet>
Stephan Herrmann2feba952012-05-26 15:02:07 +0200170 <directory>${project.build.directory}/classes</directory>
171 <includes>
172 <include>org/eclipse/jdt/internal/compiler/**</include>
173 <include>org/eclipse/jdt/core/compiler/**</include>
174 </includes>
175 <excludes>
176 <exclude>**/package.htm*</exclude>
177 <exclude>org/eclipse/jdt/core/compiler/CompilationParticipant*.class</exclude>
178 <exclude>org/eclipse/jdt/core/compiler/BuildContext.class</exclude>
179 <exclude>org/eclipse/jdt/core/compiler/IScanner.class</exclude>
180 <exclude>org/eclipse/jdt/core/compiler/ITerminalSymbols*.class</exclude>
181 <exclude>org/eclipse/jdt/core/compiler/ReconcileContext*.class</exclude>
182 <exclude>org/eclipse/jdt/internal/compiler/DocumentElementParser*.class</exclude>
183 <exclude>org/eclipse/jdt/internal/compiler/IDocumentElementRequestor.class</exclude>
184 <exclude>org/eclipse/jdt/internal/compiler/ISourceElementRequestor*.class</exclude>
185 <exclude>org/eclipse/jdt/internal/compiler/SourceElementParser*.class</exclude>
186 <exclude>org/eclipse/jdt/internal/compiler/SourceElementRequestorAdapter*.class</exclude>
187 <exclude>org/eclipse/jdt/internal/compiler/SourceJavadocParser*.class</exclude>
188 <exclude>org/eclipse/jdt/internal/compiler/parser/SourceTypeConverter*.class</exclude>
189 </excludes>
190 </fileSet>
191 </fileSets>
192 </configuration>
193 </execution>
194 </executions>
195 </plugin>
196 <plugin>
197 <groupId>org.eclipse.tycho</groupId>
198 <artifactId>tycho-p2-plugin</artifactId>
199 <version>${tycho.version}</version>
Stephan Herrmann7941b7c2013-11-03 16:07:28 +0100200 <configuration>
201 <baselineMode>warn</baselineMode>
202 <baselineReplace>common</baselineReplace>
203 </configuration>
Stephan Herrmann2feba952012-05-26 15:02:07 +0200204 <executions>
205 <execution>
206 <id>attached-p2-metadata</id>
207 <phase>package</phase>
208 <goals>
209 <goal>p2-metadata</goal>
210 </goals>
211 </execution>
212 </executions>
213 </plugin>
214 </plugins>
215 </build>
216</project>