MCPcopy Create free account
hub / github.com/defold/defold / get_jdk

Function get_jdk

editor/scripts/bundle.py:338–348  ·  view source on GitHub ↗
(platform)

Source from the content-addressed store, hash-verified

336 return 'https://github.com/adoptium/temurin%s-binaries/releases/download/jdk-%s/OpenJDK%sU-jdk_%s_hotspot_%s.%s' % (major_version, version, major_version, platform, artifact_version, extension)
337
338def get_jdk(platform):
339 archive = download("JDK for %s" % platform, full_jdk_url(platform))
340 log("Extracting JDK for %s" % platform)
341 path = "build/jdk/%s" % platform
342 rmtree(path)
343 mkdirs(path)
344 extract(archive, path)
345 if platform_is_macos(platform):
346 return '%s/jdk-%s/Contents/Home' % (path, java_version)
347 else:
348 return '%s/jdk-%s' % (path, java_version)
349
350def invoke_lein(args, jdk_path=None, **kwargs):
351 # this weird dance with env and bash instead of supplying env kwarg to run.command is needed for the build script to work on windows

Callers 2

buildFunction · 0.85
testFunction · 0.85

Calls 7

full_jdk_urlFunction · 0.85
rmtreeFunction · 0.85
mkdirsFunction · 0.85
platform_is_macosFunction · 0.85
downloadFunction · 0.70
logFunction · 0.70
extractFunction · 0.70

Tested by

no test coverage detected