(args, jdk_path=None, **kwargs)
| 348 | return '%s/jdk-%s' % (path, java_version) |
| 349 | |
| 350 | def 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 | |
| 355 | def 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) |
no test coverage detected