Getting extension list from pom (#13073)

* Getting extension list from pom

* Trigger Build
This commit is contained in:
abhagraw 2022-09-19 15:14:21 +05:30 committed by GitHub
parent a0e0fbe1b3
commit 48638a5438
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,8 @@ def generate_reports(druid_path, tmp_path, exclude_ext, num_threads):
if not exclude_ext: if not exclude_ext:
extensions_core_path = os.path.join(druid_path, "extensions-core") 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))) print("Found {} extensions".format(len(extension_dirs)))
for extension_dir in extension_dirs: for extension_dir in extension_dirs:
print("extension dir: {}".format(extension_dir)) print("extension dir: {}".format(extension_dir))