lib/liberty_buildpack/container/feature_manager.rb
def use_liberty_repository_with_properties_file?
        @logger.debug('entry')
        use_liberty_repository_with_properties_file = false
        liberty_repository_properties = @configuration['liberty_repository_properties']
        if use_liberty_repository? && liberty_repository_properties.size > 1
          @logger.debug("liberty repository properties are #{liberty_repository_properties}")
          File.open(@repository_description_properties_file, 'w') do |file|
            liberty_repository_properties.each do |key, value|
              file.puts "#{key}=#{value}" unless key == 'useRepository'
            end
          end
          use_liberty_repository_with_properties_file = true
        end
        @logger.debug("exit (#{use_liberty_repository_with_properties_file})")
        use_liberty_repository_with_properties_file
      end
# return true if liberty.yml indicates that we should use the liberty
# feature repository to install any missing liberty server features *and*
# if a properties file should be used to configure the connection to the
# repository; false is returned otherwise. To enable this kind of usage,
# liberty.yml should contain,
#   liberty_repository_properties:
#    useRepository: true
#    <further properties>
# If no properties are present other than useRepository, and if
# useRepository is set to true, this method will return false (and
# subsequent code should have determined that the repository should be
# used by calling useLiberty_repository? and use the default repository by
# invoking featureManager without a properties file). If further
# properties are present, a file will be written containing these
# properties in the format key=value (rather than key: value), and true
# will be returned.
return true if liberty.yml indicates that we should use the liberty
feature repository to install any missing liberty server features *and
if a properties file should be used to configure the connection to the
repository; false is returned otherwise. To enable this kind of usage,
liberty.yml should contain,
liberty_repository_properties:
useRepository: true

If no properties are present other than useRepository, and if
useRepository is set to true, this method will return false (and
subsequent code should have determined that the repository should be
used by calling useLiberty_repository. and use the default repository by
invoking featureManager without a properties file). If further
properties are present, a file will be written containing these
properties in the format key=value (rather than key: value), and true
will be returned.
return true if liberty . yml indicates that we should use the liberty feature repository to install any missing liberty server features * and if a properties file should be used to configure the connection to the repository ; false is returned otherwise . To enable this kind of usage liberty . yml should contain liberty_repository_properties : useRepository : true If no properties are present other than useRepository and if useRepository is set to true this method will return false ( and subsequent code should have determined that the repository should be used by calling useLiberty_repository . and use the default repository by invoking featureManager without a properties file ) . If further properties are present a file will be written containing these properties in the format key = value ( rather than key : value ) and true will be returned .
def use_liberty_repository_with_properties_file?
        @logger.debug('entry')
        use_liberty_repository_with_properties_file = false
        liberty_repository_properties = @configuration['liberty_repository_properties']
        if use_liberty_repository? && liberty_repository_properties.size > 1
          @logger.debug("liberty repository properties are #{liberty_repository_properties}")
          File.open(@repository_description_properties_file, 'w') do |file|
            liberty_repository_properties.each do |key, value|
              file.puts "#{key}=#{value}" unless key == 'useRepository'
            end
          end
          use_liberty_repository_with_properties_file = true
        end
        @logger.debug("exit (#{use_liberty_repository_with_properties_file})")
        use_liberty_repository_with_properties_file
      end
def use_liberty_repository_with_properties_file? @logger . debug ( 'entry' ) use_liberty_repository_with_properties_file = false liberty_repository_properties = @configuration [ 'liberty_repository_properties' ] if use_liberty_repository? && liberty_repository_properties . size > 1 @logger . debug ( "liberty repository properties are #{liberty_repository_properties}" ) File . open ( @repository_description_properties_file , 'w' ) do | file | liberty_repository_properties . each do | key , value | file . puts "#{key}=#{value}" unless key == 'useRepository' end end use_liberty_repository_with_properties_file = true end @logger . debug ( "exit (#{use_liberty_repository_with_properties_file})" ) use_liberty_repository_with_properties_file end
return true if liberty.yml indicates that we should use the liberty
feature repository to install any missing liberty server features *and
if a properties file should be used to configure the connection to the
repository; false is returned otherwise.
return true if liberty . yml indicates that we should use the liberty feature repository to install any missing liberty server features * and if a properties file should be used to configure the connection to the repository ; false is returned otherwise .