Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/releng
diff options
context:
space:
mode:
authorRalf Sternberg2010-05-07 11:58:05 +0000
committerRalf Sternberg2010-05-07 11:58:05 +0000
commit23abf5f0a10a4c9138fad538f3b8e59def9d73ab (patch)
treebf737b42b2a4040673699056df60fd53ec5cdaaf /releng
parent3ea960bc36ec215c937cc44307b52c8538edf3dc (diff)
downloadorg.eclipse.rap-23abf5f0a10a4c9138fad538f3b8e59def9d73ab.tar.gz
org.eclipse.rap-23abf5f0a10a4c9138fad538f3b8e59def9d73ab.tar.xz
org.eclipse.rap-23abf5f0a10a4c9138fad538f3b8e59def9d73ab.zip
Fixed bug 311544: [releng] Runtime repository name hardcoded in publish script
https://bugs.eclipse.org/bugs/show_bug.cgi?id=311544
Diffstat (limited to 'releng')
-rwxr-xr-xreleng/org.eclipse.rap.releng/scripts/publish.sh15
1 files changed, 13 insertions, 2 deletions
diff --git a/releng/org.eclipse.rap.releng/scripts/publish.sh b/releng/org.eclipse.rap.releng/scripts/publish.sh
index 58aeb7242a..15b0d56e71 100755
--- a/releng/org.eclipse.rap.releng/scripts/publish.sh
+++ b/releng/org.eclipse.rap.releng/scripts/publish.sh
@@ -296,13 +296,24 @@ function generateMetadata() {
fi
# remove exiting metadata
rm -f "$inputDir/artifacts.jar" && rm -f "$inputDir/content.jar" || return 1
+ # choose repo name
+ local inputFile=`basename "$INPUT_ARCHIVE"`
+ if [ "${inputFile:0:12}" == "rap-tooling-" ]; then
+ repoName="RAP Tooling Repository"
+ elif [ "${inputFile:0:12}" == "rap-runtime-" ]; then
+ repoName="RAP Runtime Repository"
+ else
+ echo "Cannot figure out repository name"
+ return 1
+ fi
+ echo "using repo name '$repoName'"
# create new metadata
$JAVA_HOME/bin/java -cp $ECLIPSE_LAUNCHER org.eclipse.core.launcher.Main \
-consolelog -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher \
-metadataRepository file:$inputDir \
-artifactRepository file:$inputDir \
- -metadataRepositoryName "RAP Runtime SDK Repository" \
- -artifactRepositoryName "RAP Runtime SDK Repository" \
+ -metadataRepositoryName "$repoName" \
+ -artifactRepositoryName "$repoName" \
-source $inputDir \
-configs gtk.linux.x86 \
-reusePackedFiles \

Back to the top