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

Function install_fory

ci/tasks/java.py:218–227  ·  view source on GitHub ↗

Install Fory.

()

Source from the content-addressed store, hash-verified

216
217
218def install_fory():
219 """Install Fory."""
220 # Always install jdks and create toolchains.xml to ensure proper JDK environment
221 if get_jdk_major_version() == 8:
222 install_jdks()
223 java_home = os.path.join(common.PROJECT_ROOT_DIR, JDKS["11"])
224 os.environ["JAVA_HOME"] = java_home
225 os.environ["PATH"] = f"{java_home}/bin:{os.environ.get('PATH', '')}"
226 common.cd_project_subdir("java")
227 common.exec_cmd("mvn -T16 --batch-mode --no-transfer-progress install -DskipTests")
228
229
230def run_java8():

Callers

nothing calls this directly

Calls 3

get_jdk_major_versionFunction · 0.85
install_jdksFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected