Skip to content

get-javac

Automatically generated README for this automation recipe: get-javac

Category: Detection or installation of tools and artifacts

License: Apache 2.0

  • Notes from the authors, contributors and users: README-extra

  • CM meta description for this script: _cm.json

  • Output cached? True

Reuse this script in your project

Install MLCommons CM automation meta-framework

Pull CM repository with this automation recipe (CM script)

cm pull repo mlcommons@cm4mlops

cmr "get javac" --help

Run this script

Run this script via CLI
cm run script --tags=get,javac[,variations] [--input_flags]
Run this script via CLI (alternative)
cmr "get javac [variations]" [--input_flags]
Run this script from Python
import cmind

r = cmind.access({'action':'run'
              'automation':'script',
              'tags':'get,javac'
              'out':'con',
              ...
              (other input keys for this script)
              ...
             })

if r['return']>0:
    print (r['error'])
Run this script via Docker (beta)
cm docker script "get javac[variations]" [--input_flags]

Variations

  • No group (any combination of variations can be selected)

    Click here to expand this section.

    • _install
      • ENV variables:
        • CM_JAVAC_PREBUILT_INSTALL: on

Script flags mapped to environment

  • --install=valueCM_JAVAC_PREBUILT_INSTALL=value

Default environment

These keys can be updated via --env.KEY=VALUE or env dictionary in @input.json or using script flags.

  • CM_JAVAC_PREBUILT_VERSION: 19
  • CM_JAVAC_PREBUILT_BUILD: 36
  • CM_JAVAC_PREBUILT_URL: https://download.java.net/openjdk/jdk${CM_JAVAC_PREBUILT_VERSION}/ri/
  • CM_JAVAC_PREBUILT_FILENAME: openjdk-${CM_JAVAC_PREBUILT_VERSION}+${CM_JAVAC_PREBUILT_BUILD}_${CM_JAVAC_PREBUILT_HOST_OS}-x64_bin

Native script being run


Script output

cmr "get javac [variations]" [--input_flags] -j