]> gerrit.simantics Code Review - simantics/third-party.git/commitdiff
Added publish.sh script for generating P2 metadata for a set of bundles 46/146/3
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Sun, 20 Nov 2016 20:20:22 +0000 (22:20 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Sun, 20 Nov 2016 20:47:02 +0000 (22:47 +0200)
The P2 repository generated will be published at
http://www.simantics.org/download<branch>/external-components/manual.

Also added composite P2 repository descriptors that will be published at
http://www.simantics.org/download/<branch>/external-components/. This
composite repository includes both the previously mentioned manual
direcotry and its sibling P2 repository called maven.

refs #6813

Change-Id: Id7b0f66bb00c2569cd4f2a959585cc048dd3a63a

compositeArtifacts.xml [new file with mode: 0644]
compositeContent.xml [new file with mode: 0644]
publish.sh [new file with mode: 0755]

diff --git a/compositeArtifacts.xml b/compositeArtifacts.xml
new file mode 100644 (file)
index 0000000..ea6bdd6
--- /dev/null
@@ -0,0 +1,12 @@
+<?xml version='1.0' encoding='UTF-8'?>\r
+<?compositeArtifactRepository version='1.0.0'?>\r
+<repository name='&quot;Simantics SDK external components site&quot;'\r
+    type='org.eclipse.equinox.internal.p2.artifact.repository.CompositeArtifactRepository' version='1.0.0'>\r
+  <properties size='1'>\r
+    <property name='p2.timestamp' value='12438235025465'/>\r
+  </properties>\r
+  <children size='2'>\r
+    <child location='http://www.simantics.org/download/master/external-components/maven/' />\r
+    <child location='http://www.simantics.org/download/master/external-components/manual/' />\r
+  </children>\r
+</repository>
\ No newline at end of file
diff --git a/compositeContent.xml b/compositeContent.xml
new file mode 100644 (file)
index 0000000..acf6766
--- /dev/null
@@ -0,0 +1,12 @@
+<?xml version='1.0' encoding='UTF-8'?>\r
+<?compositeMetadataRepository version='1.0.0'?>\r
+<repository name='&quot;Simantics SDK external components site&quot;'\r
+    type='org.eclipse.equinox.internal.p2.metadata.repository.CompositeMetadataRepository' version='1.0.0'>\r
+  <properties size='1'>\r
+    <property name='p2.timestamp' value='12438235025465'/>\r
+  </properties>\r
+  <children size='2'>\r
+    <child location='http://www.simantics.org/download/master/external-components/maven/' />\r
+    <child location='http://www.simantics.org/download/master/external-components/manual/' />\r
+  </children>\r
+</repository>
\ No newline at end of file
diff --git a/publish.sh b/publish.sh
new file mode 100755 (executable)
index 0000000..1001ee4
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+if [ $# -lt 2 ]; then
+       echo "usage: $0 <eclipse-executable> <repository-directory-to-generate-p2-metadata-for>"
+       exit 1
+fi
+
+ECLIPSE=$1
+REPO=$2
+
+"${ECLIPSE}" -noupdate -nosplash -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -metadataRepository file:/${REPO} -artifactRepository file:/${REPO} -source ${REPO} -compress -publishArtifacts