Download and install JDKs.
()
| 61 | |
| 62 | |
| 63 | def 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 | |
| 80 | def jdk25_access_options(fory_targets="org.apache.fory.core"): |
no test coverage detected