aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2022-09-23 09:54:30 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2022-09-23 09:54:30 +0000
commitc29d272369da1df87b24de6cae1fc217ea46d27e (patch)
treef8093a6c3cfc2ecea0249f349759786a52df7ba7
parent77d0da469a3c0a7034976541a65c4e1d488647a2 (diff)
parentebf96164a89eaaa09a931f7b9af682b7bb712799 (diff)
downloadcommon-c29d272369da1df87b24de6cae1fc217ea46d27e.tar.gz
Merge "finalize_sdk.py: strip '-stubs' from stub jar filenames"
-rwxr-xr-xtools/finalize_sdk.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/finalize_sdk.py b/tools/finalize_sdk.py
index f41a816c..0b9fbdf4 100755
--- a/tools/finalize_sdk.py
+++ b/tools/finalize_sdk.py
@@ -90,6 +90,11 @@ def maybe_tweak_compat_stem(file):
new_stem = file.stem
new_stem = new_stem.replace('art.module.public.api', 'art')
new_stem = new_stem.replace('conscrypt.module.public.api', 'conscrypt')
+
+ # The stub jar artifacts from official builds are named '*-stubs.jar', but
+ # the convention for the copies in prebuilts/sdk is just '*.jar'. Fix that.
+ new_stem = new_stem.replace('-stubs', '')
+
return file.with_stem(new_stem)
if not os.path.isdir('build/soong'):