def find(params)
params_desc = {
:root => { :mandatory => false, :type => :string, :default => '.' },
:includes => { :mandatory => false, :type => :string_or_array },
:excludes => { :mandatory => false, :type => :string_or_array },
:property => { :mandatory => true, :type => :string },
:dotmatch => { :mandatory => false, :type => :boolean, :default => false },
:join => { :mandatory => false, :type => :string }
}
check_parameters(params, params_desc)
root = params[:root]
includes = params[:includes]
excludes = params[:excludes]
property = params[:property]
dotmatch = params[:dotmatch]
join = params[:join]
files = filter_files(includes, excludes, root, dotmatch)
if join
files = files.join(join)
end
@build.context.set_property(property, files)
end