From 37e0b77e3b349c776b7a1970265e4c1f2dc00379 Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Mon, 30 Dec 2019 17:20:10 +0000 Subject: java_sdk_library: Avoid generating system and test .txt files If the library does not provide system and test APIs then do not generate/require corresponding .txt files. Bug: 145998881 Test: m checkbuild Change-Id: I21cfdb0b63fd575e8c8c63ea2b436e0c4aa8f3fc --- scripts/gen-java-current-api-files.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'scripts/gen-java-current-api-files.sh') diff --git a/scripts/gen-java-current-api-files.sh b/scripts/gen-java-current-api-files.sh index 517d3916e..902fc2f50 100755 --- a/scripts/gen-java-current-api-files.sh +++ b/scripts/gen-java-current-api-files.sh @@ -15,15 +15,16 @@ # limitations under the License. if [[ -z "$1" ]]; then - echo "usage: $0 " >&2 + echo "usage: $0 scopes..." >&2 exit 1 fi api_dir=$1/api +shift mkdir -p "$api_dir" -scopes=("" system- test-) +scopes=("" "$@") apis=(current removed) for scope in "${scopes[@]}"; do @@ -31,3 +32,4 @@ for scope in "${scopes[@]}"; do touch "${api_dir}/${scope}${api}.txt" done done + -- cgit v1.2.3-59-g8ed1b