class RakeWrapper

Public Instance Methods

execute(*args) click to toggle source
# File lib/rake/ant/tasks/raketasks.rb, line 17
def execute(*args)
  load_tasks(*args).top_level
end
import(*args) click to toggle source
# File lib/rake/ant/tasks/raketasks.rb, line 25
def import(*args)
  ant = Ant.new
  load_tasks(*args).tasks.each { |rake_task| ant.add_target rake_task }
end
invoke_task(task) click to toggle source
# File lib/rake/ant/tasks/raketasks.rb, line 21
def invoke_task(task)
  Rake.application[task].invoke
end
load_tasks(*args) click to toggle source
# File lib/rake/ant/tasks/raketasks.rb, line 6
def load_tasks(*args)
  # FIXME: Use our arguments (this sucks...let's submit a patch for Rake
  ARGV.clear
  ARGV.concat args

  Rake.application.tap do |application|
    application.init
    application.load_rakefile
  end
end