Class: Vx::Builder::Script::Java
- Inherits:
-
Struct
- Object
- Struct
- Vx::Builder::Script::Java
- Includes:
- Helper::TraceShCommand
- Defined in:
- lib/vx/builder/script/java.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
Returns the value of attribute app.
Instance Method Summary collapse
Methods included from Helper::TraceShCommand
Instance Attribute Details
#app ⇒ Object
Returns the value of attribute app
5 6 7 |
# File 'lib/vx/builder/script/java.rb', line 5 def app @app end |
Instance Method Details
#call(env) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/vx/builder/script/java.rb', line 9 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 |