Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-Andre Laperle2016-05-27 05:24:29 +0000
committerMarc-Andre Laperle2016-06-02 03:13:56 +0000
commite18d408cb318e7b565cfd11f371cf8bfe028acfd (patch)
treea79ec0009a29640bdae195c294a0782f1551a4ff /debug/org.eclipse.cdt.debug.application.product
parent39007977fabd583ab6b5efe16b69acc5b1a201ff (diff)
downloadorg.eclipse.cdt-e18d408cb318e7b565cfd11f371cf8bfe028acfd.tar.gz
org.eclipse.cdt-e18d408cb318e7b565cfd11f371cf8bfe028acfd.tar.xz
org.eclipse.cdt-e18d408cb318e7b565cfd11f371cf8bfe028acfd.zip
Sign the stand-alone debugger on Mac
The mac signing has to happen between materialize-products and archive-products goals. Because we only want to do it when the production profile is enabled (eclipse.org server), we have to duplicate some xml to fit the macsigner between the two. I did extract some variables in order to make the duplication less error prone. Change-Id: I523c287c0e1dff15026e1007fa2831af6d14003a Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Diffstat (limited to 'debug/org.eclipse.cdt.debug.application.product')
-rw-r--r--debug/org.eclipse.cdt.debug.application.product/pom.xml60
1 files changed, 58 insertions, 2 deletions
diff --git a/debug/org.eclipse.cdt.debug.application.product/pom.xml b/debug/org.eclipse.cdt.debug.application.product/pom.xml
index 04c2c01875d..af9bb231ee9 100644
--- a/debug/org.eclipse.cdt.debug.application.product/pom.xml
+++ b/debug/org.eclipse.cdt.debug.application.product/pom.xml
@@ -19,6 +19,8 @@
<properties>
<productId>org.eclipse.cdt.debug.application.product</productId>
<maven.build.timestamp.format>yyyyMMdd-HHmm</maven.build.timestamp.format>
+ <archiveFileName>cdt-stand-alone-debugger-${unqualifiedVersion}-${build.timestamp}</archiveFileName>
+ <rootFolder>cdt-stand-alone-debugger</rootFolder>
</properties>
<build>
@@ -42,6 +44,7 @@
<configuration>
<formats>
<linux>tar.gz</linux>
+ <macosx>tar.gz</macosx>
</formats>
</configuration>
</execution>
@@ -49,9 +52,9 @@
<configuration>
<products>
<product>
- <archiveFileName>cdt-stand-alone-debugger-${unqualifiedVersion}-${build.timestamp}</archiveFileName>
+ <archiveFileName>${archiveFileName}</archiveFileName>
<id>${productId}</id>
- <rootFolder>cdt-stand-alone-debugger</rootFolder>
+ <rootFolder>${rootFolder}</rootFolder>
</product>
</products>
<source>repository</source>
@@ -107,6 +110,59 @@
<build>
<plugins>
<plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-p2-director-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <executions>
+ <execution>
+ <id>materialize-products</id>
+ <goals>
+ <goal>materialize-products</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>archive-products</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>archive-products</goal>
+ </goals>
+ <configuration>
+ <formats>
+ <linux>tar.gz</linux>
+ <macosx>tar.gz</macosx>
+ </formats>
+ </configuration>
+ </execution>
+ </executions>
+ <configuration>
+ <products>
+ <product>
+ <archiveFileName>${archiveFileName}</archiveFileName>
+ <id>${productId}</id>
+ <rootFolder>${rootFolder}</rootFolder>
+ </product>
+ </products>
+ <source>repository</source>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.cbi.maven.plugins</groupId>
+ <artifactId>eclipse-macsigner-plugin</artifactId>
+ <version>${cbi-plugins.version}</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>sign</goal>
+ </goals>
+ <configuration>
+ <signFiles>
+ <signFile>${project.build.directory}/products/${productId}/macosx/cocoa/x86_64/${rootFolder}.app</signFile>
+ </signFiles>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>

Back to the top