Sha256: 1b4e5e2c2b3beb457b66fe9829a35a4590001cf8f123789651ce2e62a7b28d24

Contents?: true

Size: 531 Bytes

Versions: 1

Compression:

Stored size: 531 Bytes

Contents

# encoding: UTF-8

module Gjp
  # gjp mvn
  class MavenCommand < Gjp::BaseCommand
    parameter "[MAVEN OPTIONS] ...", "mvn options", attribute_name: "dummy"

    # override parsing in order to pipe everything to mvn
    # rubocop:disable TrivialAccessors
    def parse(args)
      @options = args
    end

    def execute
      checking_exceptions do
        project = Gjp::Project.new(".")
        ensure_dry_running(true, project) do
          Gjp::MavenRunner.new(project).mvn(@options)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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