Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland Grunberg2015-12-16 21:53:50 +0000
committerRoland Grunberg2016-01-14 01:25:54 +0000
commit9db81af37bcf29c0ba90d458431d610f6209d96d (patch)
tree88b9046ec3b734aa4dbe6c3ed27e15afe7120420
parentb786aeedbf8650e8509e3236f0588a2618eb0912 (diff)
downloadorg.eclipse.linuxtools-9db81af37bcf29c0ba90d458431d610f6209d96d.tar.gz
org.eclipse.linuxtools-9db81af37bcf29c0ba90d458431d610f6209d96d.tar.xz
org.eclipse.linuxtools-9db81af37bcf29c0ba90d458431d610f6209d96d.zip
Add API generation profile for all capable bundle projects.
The profile 'api-generation' may be enabled to trigger the generation of API data for the purpose of running other PDE API tools. Change-Id: Id23a255bb2383fea2df61cf33552729c7e013f1a Reviewed-on: https://git.eclipse.org/r/62875 Tested-by: Hudson CI Reviewed-by: Roland Grunberg <rgrunber@redhat.com> Reviewed-on: https://git.eclipse.org/r/64311
-rw-r--r--pom.xml87
-rw-r--r--releng/apitools/pom.xml2
2 files changed, 88 insertions, 1 deletions
diff --git a/pom.xml b/pom.xml
index 0ee2fa8d62..3ef989dfd8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -170,6 +170,93 @@
</plugins>
</build>
</profile>
+ <profile>
+ <id>api-generation</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.cbi.maven.plugins</groupId>
+ <artifactId>eclipse-cbi-plugin</artifactId>
+ <version>1.0.4</version>
+ <executions>
+ <execution>
+ <id>generate-api-build-xml</id>
+ <goals>
+ <goal>generate-api-build-xml</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho.extras</groupId>
+ <artifactId>tycho-eclipserun-plugin</artifactId>
+ <!-- this is actually present in any 0.14+ version -->
+ <version>${tycho-version}</version>
+ <configuration>
+ <repositories>
+ <repository>
+ <id>eclipse</id>
+ <layout>p2</layout>
+ <url>http://download.eclipse.org/releases/mars</url>
+ </repository>
+ </repositories>
+ <!-- actuall indexer call -->
+ <appArgLine>-data target/apibuild-workspace -application org.eclipse.ant.core.antRunner -buildfile target/.apibuild.xml</appArgLine>
+ <dependencies>
+ <!-- list of bundles that we need -->
+ <dependency>
+ <artifactId>org.eclipse.ant.core</artifactId>
+ <type>eclipse-plugin</type>
+ </dependency>
+ <dependency>
+ <artifactId>org.apache.ant</artifactId>
+ <type>eclipse-plugin</type>
+ </dependency>
+ <dependency>
+ <artifactId>org.eclipse.pde.api.tools</artifactId>
+ <type>eclipse-plugin</type>
+ </dependency>
+ <dependency>
+ <artifactId>org.eclipse.pde.build</artifactId>
+ <type>eclipse-plugin</type>
+ </dependency>
+ <dependency>
+ <artifactId>org.eclipse.pde.core</artifactId>
+ <type>eclipse-plugin</type>
+ </dependency>
+ <dependency>
+ <artifactId>org.eclipse.equinox.launcher</artifactId>
+ <type>eclipse-plugin</type>
+ </dependency>
+ </dependencies>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>eclipse-run</goal>
+ </goals>
+ <phase>compile</phase>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-packaging-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <configuration>
+ <additionalFileSets>
+ <fileSet>
+ <directory>${project.build.directory}</directory>
+ <includes>
+ <include>.api_description</include>
+ </includes>
+ </fileSet>
+ </additionalFileSets>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
diff --git a/releng/apitools/pom.xml b/releng/apitools/pom.xml
index a7835cd020..26e55ec3d3 100644
--- a/releng/apitools/pom.xml
+++ b/releng/apitools/pom.xml
@@ -19,7 +19,7 @@
<parent>
<groupId>org.eclipse.linuxtools.releng</groupId>
<artifactId>linuxtools-releng-parent</artifactId>
- <version>5.0.0-SNAPSHOT</version>
+ <version>4.2.0-SNAPSHOT</version>
</parent>
<artifactId>apitools</artifactId>

Back to the top