diff options
author | Marc-Andre Laperle | 2016-05-27 05:24:29 +0000 |
---|---|---|
committer | Marc-Andre Laperle | 2016-06-02 03:13:56 +0000 |
commit | e18d408cb318e7b565cfd11f371cf8bfe028acfd (patch) | |
tree | a79ec0009a29640bdae195c294a0782f1551a4ff | |
parent | 39007977fabd583ab6b5efe16b69acc5b1a201ff (diff) | |
download | org.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>
-rw-r--r-- | debug/org.eclipse.cdt.debug.application.product/pom.xml | 60 | ||||
-rw-r--r-- | pom.xml | 3 |
2 files changed, 60 insertions, 3 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> @@ -17,6 +17,7 @@ <properties> <tycho-version>0.25.0</tycho-version> <tycho-extras-version>0.25.0</tycho-extras-version> + <cbi-plugins.version>1.1.3</cbi-plugins.version> <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin> <cdt-site>http://hudson.eclipse.org/cdt/job/cdt-master/lastSuccessfulBuild/artifact/releng/org.eclipse.cdt.repo/target/repository</cdt-site> <repo-path>tools/cdt/builds/master/nightly</repo-path> @@ -311,7 +312,7 @@ <plugin> <groupId>org.eclipse.cbi.maven.plugins</groupId> <artifactId>eclipse-jarsigner-plugin</artifactId> - <version>1.1.2</version> + <version>${cbi-plugins.version}</version> <executions> <execution> <id>sign</id> |