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

Function invoke_lein

editor/scripts/bundle.py:350–353  ·  view source on GitHub ↗
(args, jdk_path=None, **kwargs)

Source from the content-addressed store, hash-verified

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
352 jdk_path = jdk_path or os.environ['JAVA_HOME']
353 return run.command(['env', 'JAVA_CMD=%s/bin/java' % jdk_path, 'LEIN_HOME=build/lein', 'bash', './scripts/lein'] + args, stdout=True, **kwargs)
354
355def invoke_zip_parallel(args, jdk_path=None):
356 return invoke_lein(['with-profile', 'zip-parallel', 'run', '-m', 'editor.zip-parallel'] + args, jdk_path=jdk_path)

Callers 8

invoke_zip_parallelFunction · 0.85
write_docsFunction · 0.85
buildFunction · 0.85
init_editorFunction · 0.85
run_testsFunction · 0.85
testFunction · 0.85

Calls 1

commandMethod · 0.80

Tested by

no test coverage detected