lib/kitbuilder/pom.rb
#
# resolve a pom
# - download it
# - download associated jars
# - resolve dependencies
#
resolve a pom
download it
download associated jars
resolve dependencies
resolve a pom download it download associated jars resolve dependencies
def resolve recursive=true
      s = self.to_str
      if @@resolved.include? s
        return
      end
      @@resolved << s
      cached, result = download_to dirname
      if cached
      else
        if result.is_a?(::String)
        else
          puts "Failed download #{s}: #{result.inspect}"
          return
        end
      end
      parse result
      if recursive
        dependencies do |pom|
          pom.parent = self
          pom.resolve
        end
      end
    end
def resolve recursive = true s = self . to_str if @@resolved . include? s return end @@resolved << s cached , result = download_to dirname if cached else if result . is_a? ( :: String ) else puts "Failed download #{s}: #{result.inspect}" return end end parse result if recursive dependencies do | pom | pom . parent = self pom . resolve end end end
resolve a pom
 download it
 download associated jars
 resolve dependencies
resolve a pom download it download associated jars resolve dependencies
#      puts "Resolving #{@@resolved.inspect}" # does it exist ? #        puts "Exists" #          puts "Downloaded to #{result}"
recursive
<not_specific>