blob: b4dbbf6a594dca69985595c6682c8d3be4894b46 [file] [log] [blame]
Stephan Herrmann2feba952012-05-26 15:02:07 +02001<?xml version="1.0" encoding="UTF-8"?>
2<!--
Stephan Herrmann35ce9502014-06-05 16:16:02 +02003 Copyright (c) 2012, 2014 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 Herrmann881bc142014-10-03 22:03:34 +020017 <version>4.5.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 Herrmann881bc142014-10-03 22:03:34 +020021 <version>3.11.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>
Stephan Herrmannac2aba32014-05-01 14:58:19 +020032 <version>1.7</version>
Stephan Herrmann309166a2013-06-07 21:35:48 +020033 <executions>
34 <execution>
35 <phase>prepare-package</phase>
36 <configuration>
37 <tasks>
38 <replace token="bundle_qualifier," value="${buildQualifier}," dir="${project.build.directory}/classes">
Stephan Herrmann6a72b272013-07-14 17:29:27 +020039 <include name="org/eclipse/jdt/internal/compiler/batch/messages.properties"/>
Stephan Herrmann309166a2013-06-07 21:35:48 +020040 </replace>
Stephan Herrmann1002fa42013-12-17 17:50:02 +010041 <replace token="bundle_version" value="${unqualifiedVersion}" dir="${project.build.directory}/classes">
Stephan Herrmann881bc142014-10-03 22:03:34 +020042 <include name="org/eclipse/jdt/internal/compiler/batch/messages.properties"/>
Stephan Herrmann1002fa42013-12-17 17:50:02 +010043 </replace>
Stephan Herrmann309166a2013-06-07 21:35:48 +020044 </tasks>
45 </configuration>
46 <goals>
47 <goal>run</goal>
48 </goals>
49 </execution>
50 </executions>
51 </plugin>
Stephan Herrmann2feba952012-05-26 15:02:07 +020052 <plugin>
Stephan Herrmann1002fa42013-12-17 17:50:02 +010053 <artifactId>maven-resources-plugin</artifactId>
54 <version>2.6</version>
55 <executions>
56 <execution>
57 <id>copy-batch-compiler-source</id>
58 <phase>package</phase>
59 <goals>
60 <goal>copy-resources</goal>
61 </goals>
62 <configuration>
63 <outputDirectory>${project.build.directory}/scripts/source</outputDirectory>
64 <resources>
65 <resource>
66 <directory>${project.basedir}/scripts/source</directory>
67 <filtering>true</filtering>
68 </resource>
69 </resources>
70 </configuration>
71 </execution>
72 </executions>
73 </plugin>
74 <plugin>
Stephan Herrmann2feba952012-05-26 15:02:07 +020075 <groupId>org.eclipse.tycho.extras</groupId>
76 <artifactId>tycho-custom-bundle-plugin</artifactId>
Stephan Herrmann1002fa42013-12-17 17:50:02 +010077 <version>${tycho-extras.version}</version>
Stephan Herrmann2feba952012-05-26 15:02:07 +020078 <executions>
79 <execution>
80 <id>antadapter</id>
81 <phase>package</phase>
82 <goals>
83 <goal>custom-bundle</goal>
84 </goals>
Stephan Herrmann5d5db952013-05-18 21:56:53 +020085 <configuration>
86 <archive>
87 <addMavenDescriptor>false</addMavenDescriptor>
88 </archive>
Stephan Herrmann2feba952012-05-26 15:02:07 +020089 <bundleLocation>${project.basedir}/scripts/antadapter</bundleLocation>
90 <classifier>antadapter</classifier>
91 <fileSets>
92 <fileSet>
93 <directory>${project.build.directory}/jdtCompilerAdapter.jar-classes</directory>
94 <excludes>
95 <exclude>org/eclipse/jdt/core/CheckDebugAttributes*.*</exclude>
96 <exclude>org/eclipse/jdt/core/BuildJarIndex*.*</exclude>
97 </excludes>
98 </fileSet>
99 </fileSets>
100 </configuration>
101 </execution>
102 <execution>
Stephan Herrmann5d5db952013-05-18 21:56:53 +0200103 <id>batch-compiler-src</id>
104 <phase>package</phase>
105 <goals>
106 <goal>custom-bundle</goal>
107 </goals>
108 <configuration>
109 <archive>
110 <addMavenDescriptor>false</addMavenDescriptor>
111 </archive>
Stephan Herrmann1002fa42013-12-17 17:50:02 +0100112 <bundleLocation>${project.build.directory}/scripts/source</bundleLocation>
Stephan Herrmann5d5db952013-05-18 21:56:53 +0200113 <classifier>batch-compiler-src</classifier>
114 <fileSets>
115 <fileSet>
116 <directory>${project.basedir}/batch</directory>
117 </fileSet>
118 <fileSet>
119 <directory>${project.basedir}/compiler</directory>
120 </fileSet>
121 <fileSet>
122 <directory>${project.basedir}/antadapter</directory>
123 <excludes>
124 <exclude>org/eclipse/jdt/core/CheckDebugAttributes.java</exclude>
125 <exclude>org/eclipse/jdt/core/BuildJarIndex.java</exclude>
126 </excludes>
127 </fileSet>
128 <fileSet>
129 <directory>${project.basedir}/../org.eclipse.jdt.compiler.tool/src</directory>
130 </fileSet>
131 <fileSet>
132 <directory>${project.basedir}/../org.eclipse.jdt.compiler.apt/src</directory>
133 </fileSet>
134 <fileSet>
135 <directory>${project.basedir}/scripts</directory>
136 <includes>
137 <include>about.html</include>
138 <include>build.xml</include>
Stephan Herrmann35ce9502014-06-05 16:16:02 +0200139 <include>ecj.1</include>
Stephan Herrmann5d5db952013-05-18 21:56:53 +0200140 </includes>
141 </fileSet>
142 </fileSets>
143 </configuration>
144 </execution>
145 <execution>
Stephan Herrmann2feba952012-05-26 15:02:07 +0200146 <id>batch-compiler</id>
147 <phase>package</phase>
148 <goals>
149 <goal>custom-bundle</goal>
150 </goals>
151 <configuration>
Stephan Herrmann5d5db952013-05-18 21:56:53 +0200152 <archive>
153 <addMavenDescriptor>false</addMavenDescriptor>
154 </archive>
Stephan Herrmann2feba952012-05-26 15:02:07 +0200155 <bundleLocation>${project.basedir}/scripts/binary</bundleLocation>
156 <classifier>batch-compiler</classifier>
157 <fileSets>
158 <fileSet>
Stephan Herrmannc7600d82013-04-28 22:48:05 +0200159 <directory>${project.build.directory}/jdtCompilerAdapter.jar-classes</directory>
160 <includes>
161 <include>META-INF/eclipse.inf</include>
162 </includes>
163 </fileSet>
Stephan Herrmann5d5db952013-05-18 21:56:53 +0200164 <fileSet>
165 <directory>${project.basedir}/scripts</directory>
166 <includes>
167 <include>about.html</include>
Stephan Herrmann35ce9502014-06-05 16:16:02 +0200168 <include>ecj.1</include>
Stephan Herrmann5d5db952013-05-18 21:56:53 +0200169 </includes>
170 </fileSet>
Stephan Herrmannc7600d82013-04-28 22:48:05 +0200171 <fileSet>
Stephan Herrmann2feba952012-05-26 15:02:07 +0200172 <directory>${project.build.directory}/classes</directory>
173 <includes>
174 <include>org/eclipse/jdt/internal/compiler/**</include>
175 <include>org/eclipse/jdt/core/compiler/**</include>
176 </includes>
177 <excludes>
178 <exclude>**/package.htm*</exclude>
179 <exclude>org/eclipse/jdt/core/compiler/CompilationParticipant*.class</exclude>
180 <exclude>org/eclipse/jdt/core/compiler/BuildContext.class</exclude>
181 <exclude>org/eclipse/jdt/core/compiler/IScanner.class</exclude>
182 <exclude>org/eclipse/jdt/core/compiler/ITerminalSymbols*.class</exclude>
183 <exclude>org/eclipse/jdt/core/compiler/ReconcileContext*.class</exclude>
184 <exclude>org/eclipse/jdt/internal/compiler/DocumentElementParser*.class</exclude>
185 <exclude>org/eclipse/jdt/internal/compiler/IDocumentElementRequestor.class</exclude>
186 <exclude>org/eclipse/jdt/internal/compiler/ISourceElementRequestor*.class</exclude>
187 <exclude>org/eclipse/jdt/internal/compiler/SourceElementParser*.class</exclude>
188 <exclude>org/eclipse/jdt/internal/compiler/SourceElementRequestorAdapter*.class</exclude>
189 <exclude>org/eclipse/jdt/internal/compiler/SourceJavadocParser*.class</exclude>
190 <exclude>org/eclipse/jdt/internal/compiler/parser/SourceTypeConverter*.class</exclude>
191 </excludes>
192 </fileSet>
193 </fileSets>
194 </configuration>
195 </execution>
196 </executions>
197 </plugin>
198 <plugin>
199 <groupId>org.eclipse.tycho</groupId>
200 <artifactId>tycho-p2-plugin</artifactId>
201 <version>${tycho.version}</version>
Stephan Herrmann7941b7c2013-11-03 16:07:28 +0100202 <configuration>
203 <baselineMode>warn</baselineMode>
204 <baselineReplace>common</baselineReplace>
205 </configuration>
Stephan Herrmann2feba952012-05-26 15:02:07 +0200206 <executions>
207 <execution>
208 <id>attached-p2-metadata</id>
209 <phase>package</phase>
210 <goals>
211 <goal>p2-metadata</goal>
212 </goals>
213 </execution>
214 </executions>
215 </plugin>
216 </plugins>
217 </build>
218</project>