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

Function _read_java_runtime

ci/release.py:294–305  ·  view source on GitHub ↗
(java_cmd)

Source from the content-addressed store, hash-verified

292
293
294def _read_java_runtime(java_cmd):
295 try:
296 proc = subprocess.run(
297 [java_cmd, "-XshowSettings:properties", "-version"],
298 stdout=subprocess.PIPE,
299 stderr=subprocess.STDOUT,
300 universal_newlines=True,
301 check=True,
302 )
303 except (OSError, subprocess.CalledProcessError):
304 return None
305 return {"props": _java_props(proc.stdout), "output": proc.stdout}
306
307
308def _is_openjdk25(runtime):

Callers 1

_ensure_openjdk25Function · 0.85

Calls 2

_java_propsFunction · 0.85
runMethod · 0.65

Tested by

no test coverage detected