Top Level Namespace

Extended by:
Buildr

Defined Under Namespace

Modules: Buildr, FileUtils, Java, Kernel, Rake, RakeFileUtils, URI, Zip Classes: Array, Hash, Object, OpenObject, ProgressBar, Symbol

Constant Summary collapse

ENV_JAVA =

Equivalent to Java system properties. For example:

ENV_JAVA['java.version']
ENV_JAVA['java.class.version']
{}

Constants included from Buildr

Buildr::ScalaCheck, Buildr::ScalaSpecs, Buildr::ScalaTest, Buildr::VERSION

Constants included from Buildr::Ant

Buildr::Ant::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

Methods included from Buildr::Ant

#ant, dependencies, version

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.



590
591
592
# File 'lib/buildr/core/application.rb', line 590

def error(message)
  puts $terminal.color(message.to_s, :red)
end

#info(message) ⇒ Object

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



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

def info(message)
  puts message if verbose
end

#tar(file) ⇒ Object

:call-seq:

tar(file) => TarTask

The TarTask creates a new Tar file. You can include any number of files and and directories, use exclusion patterns, and include files into specific directories.

To create a GZipped Tar, either set the gzip option to true, or use the .tgz or .gz suffix.

For example:

tar("test.tgz").tap do |tgz|
  tgz.include "srcs"
  tgz.include "README", "LICENSE"
end


184
185
186
# File 'lib/buildr/packaging/tar.rb', line 184

def tar(file)
  TarTask.define_task(file)
end

#trace(message) ⇒ Object

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



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

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

#warn(message) ⇒ Object

Show warning message.



584
585
586
# File 'lib/buildr/core/application.rb', line 584

def warn(message)
  warn_without_color $terminal.color(message.to_s, :blue) if verbose
end

#warn_without_colorObject



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

alias :warn_without_color :warn