From 749f98fb646e43fa2e92ea2889cb111cb99e4bdc Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Mon, 30 Dec 2019 17:23:46 +0000 Subject: java_sdk_library: Allow api dir to be specified For modules that provide API surfaces in addition to the standard current, test and system it is useful to be able to specify the directory containing the api's .txt files to make it easy to create multiple API surfaces from within the same Android.bp file. e.g. This is useful for conscrypt, icu and libcore to manage their intra core and core platform APIs. Bug: 145998881 Test: m checkbuild Change-Id: I753631d9b6993fbf30019fef5c052a9429e519de --- scripts/gen-java-current-api-files.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 902fc2f50..547387a46 100755 --- a/scripts/gen-java-current-api-files.sh +++ b/scripts/gen-java-current-api-files.sh @@ -19,7 +19,7 @@ if [[ -z "$1" ]]; then exit 1 fi -api_dir=$1/api +api_dir=$1 shift mkdir -p "$api_dir" -- cgit v1.2.3-59-g8ed1b