Class: Tetra::Ant

Inherits:
Object
  • Object
show all
Defined in:
lib/tetra/facades/ant.rb

Overview

encapsulates tetra-specific Ant commandline options

Class Method Summary collapse

Class Method Details

.commandline(project_path, ant_path) ⇒ Object

returns a command line for running Ant



7
8
9
10
11
12
13
# File 'lib/tetra/facades/ant.rb', line 7

def self.commandline(project_path, ant_path)
  if ant_path
    File.join(project_path, ant_path, "ant")
  else
    "ant" # use system-provided executable
  end
end