Java used-by API list generation

Wrap the dexdeps output content with "<externals></externals>" to
simplify backend xml parsing.

Test: TARGET_BUILD_APPS=com.android.adbd m dist apps_only
Change-Id: I1457eb9558763e50911dc9c689b9bc3fb833a52c
Merged-In: I1457eb9558763e50911dc9c689b9bc3fb833a52c
(cherry picked from commit 65a981569f)
This commit is contained in:
Matt Banda
2021-12-21 19:37:23 +00:00
parent 3ff621ed60
commit d1ed1de63a

View File

@@ -30,9 +30,11 @@ genUsedByList() {
shift
rm -f "$out"
touch "$out"
echo "<externals>" >> "$out"
for x in "$@"; do
"$dexdeps" "$x" >> "$out" || true
done
echo "</externals>" >> "$out"
}
if [[ "$1" == "help" ]]