lib/liberty_buildpack/jre/openjdk.rb
def expand(file)
      expand_start_time = Time.now
      print "       Expanding OpenJdk to #{JAVA_HOME} "

      FileUtils.rm_rf(java_home)
      FileUtils.mkdir_p(java_home)

      system "tar xzf #{file.path} -C #{java_home} --strip 1 2>&1"
      rc = system("[ $(ls #{java_home} | wc -l) = 1 ] && [ $(ls #{java_home} | grep -w notices.txt | wc -l) = 0 ]")

      if rc
        FileUtils.rm_rf(java_home)
        FileUtils.mkdir_p(java_home)
        system "tar xzf #{file.path} -C #{java_home} --strip 2 2>&1"
      end

      puts "(#{(Time.now - expand_start_time).duration})"
    end
# Filename of killjava script used to kill the JVM on OOM.
Filename of killjava script used to kill the JVM on OOM.
Filename of killjava script used to kill the JVM on OOM .
def expand(file)
      expand_start_time = Time.now
      print "       Expanding OpenJdk to #{JAVA_HOME} "
      FileUtils.rm_rf(java_home)
      FileUtils.mkdir_p(java_home)
      system "tar xzf #{file.path} -C #{java_home} --strip 1 2>&1"
      rc = system("[ $(ls #{java_home} | wc -l) = 1 ] && [ $(ls #{java_home} | grep -w notices.txt | wc -l) = 0 ]")
      if rc
        FileUtils.rm_rf(java_home)
        FileUtils.mkdir_p(java_home)
        system "tar xzf #{file.path} -C #{java_home} --strip 2 2>&1"
      end
      puts "(#{(Time.now - expand_start_time).duration})"
    end
def expand ( file ) expand_start_time = Time . now print "       Expanding OpenJdk to #{JAVA_HOME} " FileUtils . rm_rf ( java_home ) FileUtils . mkdir_p ( java_home ) system "tar xzf #{file.path} -C #{java_home} --strip 1 2>&1" rc = system ( "[ $(ls #{java_home} | wc -l) = 1 ] && [ $(ls #{java_home} | grep -w notices.txt | wc -l) = 0 ]" ) if rc FileUtils . rm_rf ( java_home ) FileUtils . mkdir_p ( java_home ) system "tar xzf #{file.path} -C #{java_home} --strip 2 2>&1" end puts "(#{(Time.now - expand_start_time).duration})" end
Filename of killjava script used to kill the JVM on OOM.
Filename of killjava script used to kill the JVM on OOM .
file