Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
maven-releng
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
af3
maven-releng
Commits
1b83f6c6
Commit
1b83f6c6
authored
Feb 06, 2019
by
Alexander Diewald
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement final artifact patching in maven.
Signed-off-by:
Alexander Diewald
<
diewald@fortiss.org
>
parent
4d3ae388
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
12 deletions
+54
-12
products/org.fortiss.af3.phoenix.product/pom.xml
products/org.fortiss.af3.phoenix.product/pom.xml
+37
-12
releng/org.fortiss.af3.update/pom.xml
releng/org.fortiss.af3.update/pom.xml
+17
-0
No files found.
products/org.fortiss.af3.phoenix.product/pom.xml
View file @
1b83f6c6
...
...
@@ -16,17 +16,6 @@
<build>
<plugins>
<plugin>
<groupId>
org.eclipse.tycho
</groupId>
<artifactId>
tycho-p2-repository-plugin
</artifactId>
<version>
${tycho-version}
</version>
<configuration>
<includeAllDependencies>
true
</includeAllDependencies>
<profileProperties>
<macosx-bundled>
true
</macosx-bundled>
</profileProperties>
</configuration>
</plugin>
<plugin>
<groupId>
org.eclipse.tycho
</groupId>
<artifactId>
tycho-p2-director-plugin
</artifactId>
...
...
@@ -34,7 +23,7 @@
<executions>
<execution>
<!-- install the product using the p2 director -->
<id>
materialize-products
</id>
<id>
default-
materialize-products
</id>
<goals>
<goal>
materialize-products
</goal>
</goals>
...
...
@@ -42,6 +31,7 @@
<execution>
<!-- create zip file with the installed product -->
<id>
archive-products
</id>
<phase>
verify
</phase>
<goals>
<goal>
archive-products
</goal>
</goals>
...
...
@@ -61,6 +51,41 @@
</products>
</configuration>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-antrun-plugin
</artifactId>
<version>
1.8
</version>
<executions>
<execution>
<id>
patch-product
</id>
<phase>
package
</phase>
<goals>
<goal>
run
</goal>
</goals>
<configuration>
<target
name=
"Final product patching"
>
<!-- Linux build -->
<echo
message=
"Creating linux launcher script..."
/>
<move
file=
"${project.build.directory}/products/org.fortiss.af3.phoenix.product/linux/gtk/x86_64/autofocus3/autofocus3-phoenix"
tofile=
"${project.build.directory}/products/org.fortiss.af3.phoenix.product/linux/gtk/x86_64/autofocus3/autofocus3-phoenix.bin"
/>
<move
file=
"${project.build.directory}/products/org.fortiss.af3.phoenix.product/linux/gtk/x86_64/autofocus3/autofocus3-phoenix.ini"
tofile=
"${project.build.directory}/products/org.fortiss.af3.phoenix.product/linux/gtk/x86_64/autofocus3/autofocus3-phoenix.bin.ini"
/>
<echo
file=
"${project.build.directory}/products/org.fortiss.af3.phoenix.product/linux/gtk/x86_64/autofocus3/autofocus3-phoenix"
append=
"false"
>
#!/bin/sh
LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:plugins/com.microsoft.z3_2.14.0.${buildQualifier}/lib/x64 ./autofocus3-phoenix.bin $$*
</echo>
<chmod
perm=
"a+x"
file=
"${project.build.directory}/products/org.fortiss.af3.phoenix.product/linux/gtk/x86_64/autofocus3/autofocus3-phoenix"
/>
<!-- MacOS build -->
<echo
message=
"Moving MacOS Z3 lib..."
/>
<copy
todir=
"${project.build.directory}/products/org.fortiss.af3.phoenix.product/macosx/cocoa/x86_64/AutoFOCUS3.app/Contents/MacOS/"
>
<fileset
dir=
"${project.build.directory}/products/org.fortiss.af3.phoenix.product/macosx/cocoa/x86_64/AutoFOCUS3.app/Contents/Eclipse/plugins/com.microsoft.z3_2.14.0.${buildQualifier}/lib/x64/"
>
<include
name=
"*.dylib"
/>
</fileset>
</copy>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
releng/org.fortiss.af3.update/pom.xml
View file @
1b83f6c6
...
...
@@ -18,4 +18,21 @@
<!-- Do not skip the deployment here -->
<maven.deploy.skip>
false
</maven.deploy.skip>
</properties>
<build>
<plugins>
<plugin>
<groupId>
org.eclipse.tycho
</groupId>
<artifactId>
tycho-p2-repository-plugin
</artifactId>
<version>
${tycho-version}
</version>
<configuration>
<includeAllDependencies>
true
</includeAllDependencies>
<profileProperties>
<macosx-bundled>
true
</macosx-bundled>
</profileProperties>
</configuration>
</plugin>
</plugins>
</build>
</project>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment