Sha256: e1ca491fd21011af44e98b95cef2087ec2c1879750785beae2232a5e3b99043b

Contents?: true

Size: 525 Bytes

Versions: 1

Compression:

Stored size: 525 Bytes

Contents

# encoding: UTF-8

module Gjp
  # gjp ant
  class AntCommand < Gjp::BaseCommand
    parameter "[ANT OPTIONS] ...", "ant 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::AntRunner.new(project).ant(@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/ant.rb