From 48638a5438db1d58ee0145e02723745db0dc940d Mon Sep 17 00:00:00 2001 From: abhagraw <99210446+abhagraw@users.noreply.github.com> Date: Mon, 19 Sep 2022 15:14:21 +0530 Subject: [PATCH] Getting extension list from pom (#13073) * Getting extension list from pom * Trigger Build --- distribution/bin/generate-license-dependency-reports.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/distribution/bin/generate-license-dependency-reports.py b/distribution/bin/generate-license-dependency-reports.py index 36d6b09210a..b16f94e3a00 100755 --- a/distribution/bin/generate-license-dependency-reports.py +++ b/distribution/bin/generate-license-dependency-reports.py @@ -59,7 +59,8 @@ def generate_reports(druid_path, tmp_path, exclude_ext, num_threads): if not exclude_ext: extensions_core_path = os.path.join(druid_path, "extensions-core") - extension_dirs = os.listdir(extensions_core_path) + command = "mvn -Dexec.executable='echo' -Dexec.args='${basedir}' exec:exec -q | grep extensions-core | grep -o '[^/]*$'" + extension_dirs = subprocess.check_output(command, cwd=druid_path, shell=True).decode().split('\n')[:-1] print("Found {} extensions".format(len(extension_dirs))) for extension_dir in extension_dirs: print("extension dir: {}".format(extension_dir))