Top Level Namespace

Extended by:
Buildr
Includes:
Rake::DSL

Defined Under Namespace

Modules: Buildr, FileUtils, Java, Rake, URI, Zip Classes: Object, OpenObject, ProgressBar

Constant Summary

Constants included from Buildr

Buildr::VERSION

Instance Method Summary collapse

Methods included from Buildr

application, application=, artifact, artifact_ns, artifacts, concat, define, download, environment, filter, group, help, help, install, integration, options, options, project, projects, read, repositories, settings, struct, transitive, unzip, upload, write, zip

Instance Method Details

#error(message) ⇒ Object

Show error message. Use this when you need to show an error message and not throwing an exception that will stop the build.



607
608
609
# File 'lib/buildr/core/application.rb', line 607

def error(message)
  puts Buildr::Console.color(message.to_s, :red)
end

#info(message) ⇒ Object

Show optional information. The message is printed only when running in verbose mode (the default).



613
614
615
# File 'lib/buildr/core/application.rb', line 613

def info(message)
  puts message if verbose
end

#trace(message) ⇒ Object

Show message. The message is printed out only when running in trace mode.



618
619
620
# File 'lib/buildr/core/application.rb', line 618

def trace(message)
  puts message if Buildr.application.options.trace
end

#trace?(*category) ⇒ Boolean

Returns:

  • (Boolean)


622
623
624
625
626
627
628
# File 'lib/buildr/core/application.rb', line 622

def trace?(*category)
  options = Buildr.application.options
  return options.trace if category.empty?
  return true if options.trace_all
  return false unless options.trace_categories
  options.trace_categories.include?(category.first)
end

#warn(*message, uplevel: nil) ⇒ Object

Show warning message.



601
602
603
# File 'lib/buildr/core/application.rb', line 601

def warn(*message, uplevel: nil)
  warn_without_color(Buildr::Console.color(message.join(' '), :blue), :uplevel => uplevel) if verbose
end

#warn_without_colorObject



598
# File 'lib/buildr/core/application.rb', line 598

alias :warn_without_color :warn