def initialize(options=Hash.new)
@logger = options[:logger] || Logger.new(STDOUT)
@logger.level = options[:loglevel] || Logger::ERROR
if(!@@classes_loaded && options[:ant_home])
@logger.debug("loading ant jar files. Ant_Home: #{options[:ant_home]}")
AntwrapClassLoader.load_ant_libs(options[:ant_home])
@@classes_loaded = true
end
@logger.debug(Antwrap::ApacheAnt::Main.getAntVersion())
@ant_version = Antwrap::ApacheAnt::Main.getAntVersion()[/\d\.\d\.\d/].to_f
init_project(options)
@task_stack = Array.new
end