Sha256: 3d423f74fae4abfd8851d5fa82ba8e27d6d423f27e5bdbbcd0c8361a4943387e
Contents?: true
Size: 560 Bytes
Versions: 20
Compression:
Stored size: 560 Bytes
Contents
module Vx module Builder class Script Java = Struct.new(:app) do include Helper::TraceShCommand def call(env) if java(env) env.cache_key << "jdk-#{java env}" env.before_install.tap do |i| i << "source $(which jdk_switcher.sh)" i << trace_sh_command("jdk_switcher use #{java env}") end end app.call(env) end private def java(env) env.source.jdk.first end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems