aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gen-java-current-api-files.sh
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2019-12-30 17:23:46 +0000
committerPaul Duffin <paulduffin@google.com>2020-01-02 15:38:42 +0000
commit749f98fb646e43fa2e92ea2889cb111cb99e4bdc (patch)
tree34c9c6c7b6cbaea54c78d2e3e011962025b6b5a8 /scripts/gen-java-current-api-files.sh
parent7a586d3a59f7745313e567acd562e31bafd70269 (diff)
downloadbuild_soong-749f98fb646e43fa2e92ea2889cb111cb99e4bdc.tar.gz
build_soong-749f98fb646e43fa2e92ea2889cb111cb99e4bdc.tar.bz2
build_soong-749f98fb646e43fa2e92ea2889cb111cb99e4bdc.zip
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
Diffstat (limited to 'scripts/gen-java-current-api-files.sh')
-rwxr-xr-xscripts/gen-java-current-api-files.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gen-java-current-api-files.sh b/scripts/gen-java-current-api-files.sh
index 902fc2f5..547387a4 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"