lib/java/ant.rb in buildr-1.2.3 vs lib/java/ant.rb in buildr-1.2.4
- old
+ new
@@ -46,9 +46,10 @@
# end
# end
def ant(name, options=nil, &block)
warn_deprecated "Options are ignored." if options
options = { :name=>name, :basedir=>Dir.pwd, :declarative=>true }
+ options.merge!(:logger=> Logger.new(STDOUT), :loglevel=> Logger::DEBUG) if Rake.application.options.trace
Java.rjb do
AntProject.new(options).tap do |project|
# Set Ant logging level to debug (--trace), info (default) or error only (--quiet).
project.project.getBuildListeners().get(0).
setMessageOutputLevel((Rake.application.options.trace && 4) || (verbose && 2) || 0)