Class Buildr::Options
In: lib/buildr/core/build.rb  (CVS)
lib/buildr/core/environment.rb  (CVS)
lib/buildr/core/compile.rb  (CVS)
lib/buildr/core/test.rb  (CVS)
Parent: Object

Collection of options for controlling Buildr.

Methods

debug   debug=   proxy   test   test=  

Classes and Modules

Class Buildr::Options::Proxies

Attributes

parallel  [RW]  Runs the build in parallel when true (defaults to false). You can force a parallel build by setting this option directly, or by running the parallel task ahead of the build task.

This option only affects recursive tasks. For example:

  buildr parallel package

will run all package tasks (from the sub-projects) in parallel, but each sub-project‘s package task runs its child tasks (prepare, compile, resources, etc) in sequence.

Public Instance methods

Returns the debug option (environment variable DEBUG).

Sets the debug option (environment variable DEBUG).

You can turn this option off directly, or by setting the environment variable DEBUG to no. For example:

  buildr build DEBUG=no

The release tasks runs a build with DEBUG=no.

Returns the proxy options. Currently supported options are:

  • :http — HTTP proxy for use when downloading.
  • :exclude — Do not use proxy for these hosts/domains.

For example:

  options.proxy.http = 'http://proxy.acme.com:8080'

You can also set it using the environment variable HTTP_PROXY.

You can exclude individual hosts from being proxied, or entire domains, for example:

  options.proxy.exclude = 'optimus'
  options.proxy.exclude = ['optimus', 'prime']
  options.proxy.exclude << '*.internal'

Returns the test option (environment variable TEST). Possible values are:

  • :false — Do not run any tests (also accepts ‘no’ and ‘skip’).
  • :true — Run all tests, stop on failure (default if not set).
  • :all — Run all tests, ignore failures.

Sets the test option (environment variable TEST). Possible values are true, false or :all.

You can also set this from the environment variable, e.g.:

  buildr          # With tests
  buildr test=no  # Without tests
  buildr test=all # Ignore failures
  set TEST=no
  buildr          # Without tests

[Validate]