Sha256: 56d4e12e06bbf5d7222c3b95200f80b9cc33fe937ebd9e3dfef3776e1794ef0f

Contents?: true

Size: 561 Bytes

Versions: 76

Compression:

Stored size: 561 Bytes

Contents

module Vx
  module Builder
    class ScriptBuilder

      class Java < Base

        def call(env)
          if java(env)
            do_cache_key(env) do |i|
              i << "jdk-#{java env}"
            end

            do_before_install(env) 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

76 entries across 76 versions & 1 rubygems

Version Path
vx-builder-0.5.41 lib/vx/builder/script_builder/java.rb
vx-builder-0.5.38 lib/vx/builder/script_builder/java.rb
vx-builder-0.5.37 lib/vx/builder/script_builder/java.rb
vx-builder-0.5.36 lib/vx/builder/script_builder/java.rb
vx-builder-0.5.35 lib/vx/builder/script_builder/java.rb
vx-builder-0.5.34 lib/vx/builder/script_builder/java.rb
vx-builder-0.5.33 lib/vx/builder/script_builder/java.rb
vx-builder-0.5.32 lib/vx/builder/script_builder/java.rb
vx-builder-0.5.31 lib/vx/builder/script_builder/java.rb
vx-builder-0.5.30 lib/vx/builder/script_builder/java.rb
vx-builder-0.5.29 lib/vx/builder/script_builder/java.rb
vx-builder-0.5.28 lib/vx/builder/script_builder/java.rb
vx-builder-0.5.27 lib/vx/builder/script_builder/java.rb
vx-builder-0.5.26 lib/vx/builder/script_builder/java.rb
vx-builder-0.5.25 lib/vx/builder/script_builder/java.rb
vx-builder-0.5.24 lib/vx/builder/script_builder/java.rb
vx-builder-0.5.23 lib/vx/builder/script_builder/java.rb
vx-builder-0.5.22 lib/vx/builder/script_builder/java.rb
vx-builder-0.5.21 lib/vx/builder/script_builder/java.rb
vx-builder-0.5.20 lib/vx/builder/script_builder/java.rb