lib/liberty_buildpack/container/liberty.rb
# Downloads and unpacks a Liberty instance
#
# @return [void]
Downloads and unpacks a Liberty instance
Downloads and unpacks a Liberty instance
def compile
      @liberty_components_and_uris, @liberty_license = Liberty.find_liberty_files(@app_dir, @configuration)
      unless LibertyBuildpack::Util.check_license(@liberty_license, @license_id)
        print "\nYou have not accepted the IBM Liberty License.\n\nVisit the following uri:\n#{@liberty_license}\n\nExtract the license number (D/N:) and place it inside your manifest file as a ENV property e.g. \nENV: \n  IBM_LIBERTY_LICENSE: {License Number}.\n"
        raise
      end
      download_and_install_liberty
      link_application
      update_server_xml
      make_server_script_runnable
      download_and_install_features
      minify_liberty if minify?
      overlay_java
      set_liberty_system_properties
    end
def compile @liberty_components_and_uris , @liberty_license = Liberty . find_liberty_files ( @app_dir , @configuration ) unless LibertyBuildpack :: Util . check_license ( @liberty_license , @license_id ) print "\nYou have not accepted the IBM Liberty License.\n\nVisit the following uri:\n#{@liberty_license}\n\nExtract the license number (D/N:) and place it inside your manifest file as a ENV property e.g. \nENV: \n  IBM_LIBERTY_LICENSE: {License Number}.\n" raise end download_and_install_liberty link_application update_server_xml make_server_script_runnable download_and_install_features minify_liberty if minify? overlay_java set_liberty_system_properties end
Downloads and unpacks a Liberty instance
Downloads and unpacks a Liberty instance
# Need to do minify here to have server_xml updated and applications and libs linked.
None
void