# Antwrap problems

**URL:** <https://www.ruby-forum.com/t/antwrap-problems/144491>\
**Category:** Ruby\
**Created:** [July 30, 2008, 7:11am UTC](https://www.ruby-forum.com/t/antwrap-problems/144491 "2008-07-30T07:11:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![srinu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f475e1/32.png) [@srinu](https://www.ruby-forum.com/u/srinu)\
**Post date:** [July 30, 2008, 7:11am UTC](https://www.ruby-forum.com/t/antwrap-problems/144491/1 "2008-07-30T07:11:58Z")

</div>

Hi All,

My Requirement: I need to execute ant tasks,then get the status whether  
task is executed success or failure.

Exactly requirement get status of executed tasks send status in to the  
database.

For that installed rjb and antwrap,Started working on antwrap.

## My code is below.

options = {:ant\_home=\>“D://apache-ant-1.7.1”, :name=\>‘BotServer’,  
:basedir=\>“C://InstantRails-1.3a-with-PHP-5.1.4//InstantRails//rails\_apps”,  
:declarative=\> true, :logger=\> Logger.new(STDOUT),  
:loglevel=\> Logger::DEBUG}  
puts “options------------------------------1”  
antProject = AntProject.new(options)  
antTask = AntTask.new(‘ws-run -DD=PRnnn’, antProject, {:debug  
=\> ‘on’, :verbose =\> ‘no’, :fork =\> ‘no’})  
puts “before task------------------------------”  
antTask.execute()

## While executing code Error states in this this below manner

exception uninitialized constant TestRunsController::AntProject  
@blamed\_files Empty Array  
md nil  
msg nil  
origin\_file nil  
origin\_line nil

Here TestRunsController is my controller.

Could you please help me in this regard
