class Rake::FileList

Constants

IGNORE_GIT_PATTERN

Public Class Methods

get_ignored_dir_pattern(dir) click to toggle source
# File lib/rake/helpers/filelist.rb, line 6
def self.get_ignored_dir_pattern(dir)
    # if a pattern contains lookahead
    # # do not add trailing part
    if /\(\?[=!]/ =~ dir
        return Regexp.new("(^|[\\/\\\\])#{dir}", true)
    else
        return Regexp.new("(^|[\\/\\\\])#{dir}([\\/\\\\]|$)", true)
    end
end