lib/maestro/plugin/rake_tasks/package_task.rb in maestro-plugin-rake-tasks-1.0.9 vs lib/maestro/plugin/rake_tasks/package_task.rb in maestro-plugin-rake-tasks-1.0.10

- old
+ new

@@ -1,11 +1,11 @@ require 'maestro/plugin/rake_tasks/version' +require 'maestro/plugin/rake_tasks/pom' require 'rake' require 'rake/tasklib' require 'zip' require 'git' -require 'nokogiri' require 'json' module Maestro module Plugin @@ -104,14 +104,12 @@ end private def parse_pom - pom = File.open(@pom_path) - doc = Nokogiri::XML(pom.read) - pom.close - @plugin_name ||= doc.at_xpath('/xmlns:project/xmlns:artifactId').text - @version ||= doc.at_xpath('/xmlns:project/xmlns:version').text + pom = Pom.new(@pom_path) + @plugin_name ||= pom.artifact_id + @version ||= pom.version end def git_version return @version unless Dir.exists?(".git") git = Git.open('.')