mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-21 21:25:38 +00:00
jetty-9.4.44: also automatically remove target-base Jetty bundles and get new ones from Maven central for osgi.boot.jsp and apache-jsp
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
VERSION=$( curl https://download.eclipse.org/jetty/updates/jetty-bundles-9.x/ | grep "/jetty/updates/jetty-bundles-9.x" | sed -e 's/^.*> \?\(9\.4\.[0-9]*\.v[0-9]*\)<.*$/\1/' )
|
||||
echo "Found version ${VERSION}"
|
||||
P2_URL="https://download.eclipse.org/jetty/updates/jetty-bundles-9.x/${VERSION}/"
|
||||
TARGET_BASE_PLUGINS_DIR=../../com.sap.sailing.targetplatform.base/plugins/target-base/
|
||||
TMP_FOLDER="${TMP}/jetty-${VERSION}"
|
||||
rm -rf "${TMP_FOLDER}"
|
||||
eclipse -nosplash -verbose -application org.eclipse.equinox.p2.metadata.repository.mirrorApplication -source https://download.eclipse.org/jetty/updates/jetty-bundles-9.x/${VERSION}/ -destination file:${TMP_FOLDER}
|
||||
@@ -13,6 +14,18 @@ OLD_VERSION=$( cat ../definitions/race-analysis-p2-remote.target | grep '\(<unit
|
||||
echo "Found old version ${OLD_VERSION}"
|
||||
echo "Updating com.sap.sse.feature.runtime/feature.xml from Jetty bundles version ${OLD_VERSION} to ${VERSION} ..."
|
||||
sed -i -e 's/version="'${OLD_VERSION}'"/version="'${VERSION}'"/' ../../com.sap.sse.feature.runtime/feature.xml
|
||||
echo "Updating com.sap.sailing.targetplatform.base/features/target-base/feature.xml from Jetty bundles version ${OLD_VERSION} to ${VERSION} ..."
|
||||
sed -i -e 's/version="'${OLD_VERSION}'"/version="'${VERSION}'"/' ../../com.sap.sailing.targetplatform.base/features/target-base/feature.xml
|
||||
echo "Removing old versions of apache-jsp and osgi.boot.jsp from target-base..."
|
||||
rm "${TARGET_BASE_PLUGINS_DIR}/apache-jsp-9.4*.jar"
|
||||
rm "${TARGET_BASE_PLUGINS_DIR}/jetty-osgi-boot-9.4*.jar"
|
||||
echo "Downloading new versions..."
|
||||
wget -O "${TARGET_BASE_PLUGINS_DIR}/apache-jsp-${VERSION}.jar" https://repo1.maven.org/maven2/org/eclipse/jetty/apache-jsp/${VERSION}/apache-jsp-${VERSION}.jar
|
||||
wget -O "${TARGET_BASE_PLUGINS_DIR}/apache-jsp-${VERSION}-sources.jar" https://repo1.maven.org/maven2/org/eclipse/jetty/apache-jsp/${VERSION}/apache-jsp-${VERSION}-sources.jar
|
||||
wget -O "${TARGET_BASE_PLUGINS_DIR}/jetty-osgi-boot-${VERSION}.jar" https://repo1.maven.org/maven2/org/eclipse/jetty/osgi/jetty-osgi-boot/${VERSION}/jetty-osgi-boot-${VERSION}.jar
|
||||
wget -O "${TARGET_BASE_PLUGINS_DIR}/jetty-osgi-boot-${VERSION}-sources.jar" https://repo1.maven.org/maven2/org/eclipse/jetty/osgi/jetty-osgi-boot/${VERSION}/jetty-osgi-boot-${VERSION}-sources.jar
|
||||
echo "Adding new versions to git..."
|
||||
git add "${TARGET_BASE_PLUGINS_DIR}/*.jar"
|
||||
echo "Updating target platform definition..."
|
||||
sed -i -e 's/\(<unit id="org\.eclipse\.jetty\.bundles\.f\.\(source\.\)\?feature\.group" version="\)[^"]*\("\/>\)/\1'${VERSION}'\3/' -e 's/\(<repository location="https:\/\/p2\.sapsailing\.com\/p2\/\)jetty.*\(\/"\/>\)/\1jetty-'${VERSION}'\2/' ../definitions/race-analysis-p2-remote.target
|
||||
echo "Your target platform definition now points to https://p2.sapsailing.com/p2/jetty-${VERSION} for the Jetty bundles. Now please update the org.eclipse.jetty.osgi.boot.jsp[.source] and org.eclipse.jetty.apache-jsp[.source] bundles in java/com.sap.sailing.targetplatform.base/plugins/target-base and try a build with the -v parameter, using a local target platform. If this works, run the createLocalBaseP2repository.sh and uploadRepositoryToServer.sh scripts to produce an updated p2 sailing repository. Check for the new versions of apache-jsp and osgi.boot.jsp here https://repo1.maven.org/maven2/org/eclipse/jetty/apache-jsp/ and here https://repo1.maven.org/maven2/org/eclipse/jetty/osgi/jetty-osgi-boot/, respectively."
|
||||
|
||||
Reference in New Issue
Block a user