MCPcopy Create free account
hub / github.com/apache/fory / install_jdks

Function install_jdks

ci/tasks/java.py:63–77  ·  view source on GitHub ↗

Download and install JDKs.

()

Source from the content-addressed store, hash-verified

61
62
63def install_jdks():
64 """Download and install JDKs."""
65 logging.info("Downloading and installing JDKs")
66 common.cd_project_subdir("") # Go to the project root
67 for jdk in JDKS.values():
68 if os.path.exists(os.path.join(common.PROJECT_ROOT_DIR, jdk)):
69 logging.info(f"JDK {jdk} already exists")
70 continue
71 common.exec_cmd(
72 f"wget -q https://cdn.azul.com/zulu/bin/{jdk}.tar.gz -O {jdk}.tar.gz"
73 )
74 common.exec_cmd(f"tar zxf {jdk}.tar.gz")
75 logging.info("Creating toolchains.xml")
76 create_toolchains_xml(JDKS)
77 logging.info("JDKs downloaded and installed successfully")
78
79
80def jdk25_access_options(fory_targets="org.apache.fory.core"):

Callers 3

install_foryFunction · 0.85
run_java8Function · 0.85
run_integration_testsFunction · 0.85

Calls 3

create_toolchains_xmlFunction · 0.85
infoMethod · 0.65
valuesMethod · 0.45

Tested by

no test coverage detected