Sha256: 6980aa6c977e36229257d0061f0a8b83856b5159d52d5c455883b3a1b4f2efc7

Contents?: true

Size: 808 Bytes

Versions: 1

Compression:

Stored size: 808 Bytes

Contents

# encoding: UTF-8

module Gjp
  # gjp generate-package-spec
  class GeneratePackageSpecCommand < Gjp::BaseCommand
    option %w(-f --filter), "FILTER", "filter files to be installed by this spec", default: "*.jar"
    parameter "[DIRECTORY]", "path to a package directory (src/<package name>)", default: "."
    parameter "[POM]", "a pom file path", default: "pom.xml"

    def execute
      checking_exceptions do
        project = Gjp::Project.new(".")
        ensure_dry_running(false, project) do
          package_name = project.get_package_name(directory)
          result_path, conflict_count = Gjp::SpecGenerator.new(project)
            .generate_package_spec(package_name, pom, filter)
          print_generation_result(project, result_path, conflict_count)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gjp-0.39.0 lib/gjp/commands/generate_package_spec.rb