lib/gjp/commands/generate_all.rb in gjp-0.38.0 vs lib/gjp/commands/generate_all.rb in gjp-0.39.0

- old
+ new

@@ -1,20 +1,21 @@ # encoding: UTF-8 module Gjp + # gjp generate-all class GenerateAllCommand < Gjp::BaseCommand - option ["-f", "--filter"], "FILTER", "filter files to be installed by this package spec", default: "*.jar" - option ["-f", "--full"], :flag, "create a full archive (not incremental)" + option %w(-f --filter), "FILTER", "filter files to be installed by this package spec", default: "*.jar" + option %w(-w --whole), :flag, "recreate the whole archive (not incremental)" parameter "[DIRECTORY]", "path to a package directory (src/<package name>)", default: "." parameter "[POM]", "a package 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 = Gjp::Archiver.new(project).archive_kit(full?) + result_path = Gjp::Archiver.new(project).archive_kit(whole?) print_generation_result(project, result_path) result_path, conflict_count = Gjp::SpecGenerator.new(project).generate_kit_spec print_generation_result(project, result_path, conflict_count)