Class Buildr::ResourcesTask
In: lib/buildr/core/compile.rb  (CVS)
Parent: Rake::Task

The resources task is executed by the compile task to copy resource files over to the target directory. You can enhance this task in the normal way, but mostly you will use the task‘s filter.

For example:

  resources.filter.using 'Copyright'=>'Acme Inc, 2007'

Methods

exclude   from   include   sources   target  

Attributes

filter  [R]  Returns the filter used to copy resources over. See Buildr::Filter.

Public Instance methods

Excludes the specified files in the filter and returns self.

Adds additional directories from which to copy resources.

For example:

  resources.from _('src/etc')

Includes the specified files in the filter and returns self.

Returns the list of source directories (each being a file task).

Returns the filter‘s target directory as a file task.

[Validate]