mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-21 21:25:38 +00:00
build p2 repo with maven plugin instead of manually invoking launcher jar
This commit is contained in:
@@ -1,22 +1,3 @@
|
||||
#!/bin/bash
|
||||
set -u
|
||||
if [ "$ECLIPSE_HOME" = "" ]; then
|
||||
ECLIPSE_HOME=C:/Users/D056866/Sailing/eclipse
|
||||
fi
|
||||
if [ "$SAILING_GIT_HOME" = "" ]; then
|
||||
SAILING_GIT_HOME=C:/Users/D056866/Sailing/git
|
||||
fi
|
||||
TARGET_PLATFORM_BASE_DIR=${SAILING_GIT_HOME}/java/com.sap.sailing.targetplatform.base
|
||||
|
||||
ECLIPSE_VM_ARGS="-Xmx256m"
|
||||
ECLIPSE_LAUNCHER=${ECLIPSE_HOME}/plugins/org.eclipse.equinox.launcher_*.jar
|
||||
|
||||
echo TARGET_PLATFORM_BASE_DIR is $SAILING_GIT_HOME
|
||||
echo ECLIPSE_HOME is $ECLIPSE_HOME
|
||||
echo Eclipse Launcher $ECLIPSE_LAUNCHER
|
||||
|
||||
java -jar ${ECLIPSE_LAUNCHER} -consolelog -nosplash -verbose -application org.eclipse.equinox.p2.publisher.UpdateSitePublisher \
|
||||
-metadataRepository file:/${TARGET_PLATFORM_BASE_DIR}/gen/p2 \
|
||||
-artifactRepository file:/${TARGET_PLATFORM_BASE_DIR}/gen/p2 \
|
||||
-source ${TARGET_PLATFORM_BASE_DIR} \
|
||||
-publishArtifacts -publishArtifactRepository -compress -noDefaultIUs -vmargs ${ECLIPSE_VM_ARGS}
|
||||
cd ../../com.sap.sailing.targetplatform.base
|
||||
mvn tycho-p2-extras:publish-features-and-bundles
|
||||
@@ -1,21 +0,0 @@
|
||||
#!/bin/bash
|
||||
# see http://wiki.eclipse.org/Equinox/p2/Publisher for documentation
|
||||
|
||||
if [ "$ECLIPSE_HOME" = "" ]; then
|
||||
ECLIPSE_BIN=`which eclipse`
|
||||
ECLIPSE_HOME="`dirname $ECLIPSE_BIN`"
|
||||
fi
|
||||
|
||||
SAILING_GIT_HOME="`pwd`/../../.."
|
||||
|
||||
TARGET_PLATFORM_BASE_DIR=${SAILING_GIT_HOME}/java/com.sap.sailing.targetplatform.base
|
||||
ECLIPSE_VM_ARGS="-Xmx256m"
|
||||
ECLIPSE_LAUNCHER=${ECLIPSE_HOME}/plugins/org.eclipse.equinox.launcher_*.jar
|
||||
|
||||
echo "Deploying metadata to $TARGET_PLATFORM_BASE_DIR/gen/p2..."
|
||||
|
||||
java -jar ${ECLIPSE_LAUNCHER} -consolelog -nosplash -verbose -application org.eclipse.equinox.p2.publisher.UpdateSitePublisher \
|
||||
-metadataRepository file:/${TARGET_PLATFORM_BASE_DIR}/gen/p2 \
|
||||
-artifactRepository file:/${TARGET_PLATFORM_BASE_DIR}/gen/p2 \
|
||||
-source ${TARGET_PLATFORM_BASE_DIR} \
|
||||
-publishArtifacts -publishArtifactRepository -compress -noDefaultIUs -vmargs ${ECLIPSE_VM_ARGS}
|
||||
@@ -1,3 +1,6 @@
|
||||
#!/bin/bash
|
||||
# generate a target definition pointing to the locally built p2 repo from the race-analysis-p2-remote target defintion
|
||||
|
||||
base="../definitions/race-analysis-p2"
|
||||
remote_repo="http://p2.sapsailing.com/p2/sailing/"
|
||||
local_repo="file://$(readlink -f ../../com.sap.sailing.targetplatform.base/gen/p2/)"
|
||||
|
||||
Reference in New Issue
Block a user