Module: Perkins::Build::Script::Jdk
- Included in:
- Ruby
- Defined in:
- lib/perkins/build/script/jdk.rb
Instance Method Summary collapse
Instance Method Details
#announce ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/perkins/build/script/jdk.rb', line 18 def announce super if uses_java? cmd "java -version", timing: false cmd "javac -version", timing: false end end |
#cache_slug ⇒ Object
26 27 28 29 |
# File 'lib/perkins/build/script/jdk.rb', line 26 def cache_slug return super unless uses_jdk? super << "--jdk-" << config[:jdk].to_s end |
#export ⇒ Object
5 6 7 8 |
# File 'lib/perkins/build/script/jdk.rb', line 5 def export super set 'TRAVIS_JDK_VERSION', config[:jdk], echo: false if uses_jdk? end |
#setup ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/perkins/build/script/jdk.rb', line 10 def setup super cmd "jdk_switcher use #{config[:jdk]}", assert: true, timing: false if uses_jdk? self.if '-f build.gradle' do set 'TERM', 'dumb', echo: false end end |