This is an automated email from the ASF dual-hosted git repository.
abhishek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git
The following commit(s) were added to refs/heads/master by this push:
new 48638a5438 Getting extension list from pom (#13073)
48638a5438 is described below
commit 48638a5438db1d58ee0145e02723745db0dc940d
Author: abhagraw <[email protected]>
AuthorDate: Mon Sep 19 15:14:21 2022 +0530
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 36d6b09210..b16f94e3a0 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))
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]