Sha256: 222bb80f1a8e66236675590ea4ddc868a57710f905802a945f0c47b2dad100bf

Contents?: true

Size: 555 Bytes

Versions: 2

Compression:

Stored size: 555 Bytes

Contents

# encoding: UTF-8

module Tetra
  # tetra ant
  class AntSubcommand < Tetra::Subcommand
    parameter "[ANT OPTIONS] ...", "ant options", attribute_name: "dummy"

    # options will be parsed by ant
    def parse(args)
      bypass_parsing(args)
    end

    def execute
      checking_exceptions do
        project = Tetra::Project.new(".")
        ensure_dry_running(true, project) do
          path = Tetra::Kit.new(project).find_executable("ant")
          Tetra::Ant.new(project.full_path, path).ant(@options)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tetra-0.49.0 lib/tetra/ui/ant_subcommand.rb
tetra-0.48.0 lib/tetra/ui/ant_subcommand.rb