Sha256: cac6b2973a62b0fd554f3970b7c168d07d625a57e6b909dfd28b3b3e8d286f73

Contents?: true

Size: 534 Bytes

Versions: 1

Compression:

Stored size: 534 Bytes

Contents

# encoding: UTF-8

require "pathname"

module Gjp
  # attempts to get a pom's parent pom
  class ParentPomGetter

    def self.log
      Gjp.logger
    end

    # returns the pom's parent, if any
    def self.get_parent_pom(filename)
      begin
        pom = Pom.new(filename)
        site = MavenWebsite.new

        site.download_pom(pom.parent_group_id, pom.parent_artifact_id, pom.parent_version)
      rescue RestClient::ResourceNotFound
        $stderr.puts "Could not find a parent for this pom!" 
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gjp-0.11.1 lib/gjp/parent_pom_getter.rb