Sha256: f7bf84796d30d55555c4411b098034a5a6052756b691cae2faf1e9d2a5e08019

Contents?: true

Size: 611 Bytes

Versions: 7

Compression:

Stored size: 611 Bytes

Contents

# encoding: UTF-8

module Gjp
  # runs Ant with gjp-specific options
  class AntRunner < KitRunner
    include Logger

    # runs ant in a subprocess
    def ant(options)
      run_executable("#{get_ant_commandline(@project.full_path)} #{options.join(' ')}")
    end

    # returns a command line for running Ant from the specified
    # prefix
    def get_ant_commandline(prefix)
      executable = find_executable("ant")

      if executable != nil
        ant_path = File.join(prefix, executable)

        "#{ant_path}"
      else
        raise ExecutableNotFoundError.new("ant")
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gjp-0.36.0 lib/gjp/ant_runner.rb
gjp-0.35.0 lib/gjp/ant_runner.rb
gjp-0.34.0 lib/gjp/ant_runner.rb
gjp-0.33.0 lib/gjp/ant_runner.rb
gjp-0.32.0 lib/gjp/ant_runner.rb
gjp-0.31.0 lib/gjp/ant_runner.rb
gjp-0.30.0 lib/gjp/ant_runner.rb