You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ss...@apache.org on 2025/11/26 09:22:33 UTC
(sling-tooling-release) 02/03: always use the part after the last ":" to get the version number, to be compatible a bundle identified like "org.apache.sling:org.apache.sling.commons.log:jar:all:6.0.2"
This is an automated email from the ASF dual-hosted git repository.
sseifert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-tooling-release.git
commit 39cc4f24b1b5a4ab2f4e77f0eb16dc1c8fe55e82
Author: Stefan Seifert <st...@users.noreply.github.com>
AuthorDate: Wed Nov 26 10:06:15 2025 +0100
always use the part after the last ":" to get the version number, to be compatible a bundle identified like "org.apache.sling:org.apache.sling.commons.log:jar:all:6.0.2"
---
generate_javadoc_for_release.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/generate_javadoc_for_release.sh b/generate_javadoc_for_release.sh
index d9f035c..0bbfd16 100755
--- a/generate_javadoc_for_release.sh
+++ b/generate_javadoc_for_release.sh
@@ -46,7 +46,7 @@ else
fi
# extract <artifactId>-<version> from feature file
-artifacts=$(cat $WORKDIR/feature.json | jq -r '.bundles[].id | select(startswith("org.apache.sling"))' | awk -F ':' '{ print $2 ":" $3 }')
+artifacts=$(cat $WORKDIR/feature.json | jq -r '.bundles[].id | select(startswith("org.apache.sling"))' | awk -F ':' '{ print $2 ":" $NF }')
# add additional artifacts which are not part of the launchpad
# https://issues.apache.org/jira/browse/SLING-6766
@@ -55,8 +55,8 @@ artifacts+=" org.apache.sling.servlets.annotations:1.2.6"
# checkout tags
for artifact in $artifacts; do
- artifact_name=$(echo $artifact | sed 's/:.*//')
- artifact_version=$(echo $artifact | sed 's/.*://')
+ artifact_name=$(echo $artifact | awk -F ':' '{ print $1 }')
+ artifact_version=$(echo $artifact | awk -F ':' '{ print $2 }')
branch_name="${artifact_name}-${artifact_version}"
artifact_dir="sling-${artifact_name}-${artifact_version}"
artifact_repo=$(echo $artifact_name | tr '.' '-')