Top Level Namespace
- Extended by:
- Buildr
Defined Under Namespace
Modules: Buildr, Java, Kernel, Rake, URI, Zip Classes: Array, BasicObject, 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
Instance Method Summary collapse
-
#error(message) ⇒ Object
Show error message.
-
#info(message) ⇒ Object
Show optional information.
-
#tar(file) ⇒ Object
:call-seq: tar(file) => TarTask.
-
#trace(message) ⇒ Object
Show message.
-
#warn(message) ⇒ Object
Show warning message.
- #warn_without_color ⇒ Object
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
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.
443 444 445 |
# File 'lib/buildr/core/application.rb', line 443 def error() puts $terminal.color(.to_s, :red) end |
#info(message) ⇒ Object
Show optional information. The message is printed only when running in verbose mode (the default).
449 450 451 |
# File 'lib/buildr/core/application.rb', line 449 def info() puts 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
102 103 104 |
# File 'lib/buildr/packaging/tar.rb', line 102 def tar(file) TarTask.define_task(file) end |
#trace(message) ⇒ Object
Show message. The message is printed out only when running in trace mode.
454 455 456 |
# File 'lib/buildr/core/application.rb', line 454 def trace() puts if Buildr.application..trace end |
#warn(message) ⇒ Object
Show warning message.
437 438 439 |
# File 'lib/buildr/core/application.rb', line 437 def warn() warn_without_color $terminal.color(.to_s, :blue) if verbose end |
#warn_without_color ⇒ Object
434 |
# File 'lib/buildr/core/application.rb', line 434 alias :warn_without_color :warn |