Skip to content

Commit

Permalink
Merge pull request #101 from FernCreek/patch/fairbanksg/buildfile-exc…
Browse files Browse the repository at this point in the history
…lude

Adds exclude option to abbot.
  • Loading branch information
publickeating committed Sep 26, 2013
2 parents e742efd + ea3d1ab commit 88b93ce
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
5 changes: 3 additions & 2 deletions lib/buildtasks/manifest.rake
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,16 @@ namespace :manifest do
manifest = env[:manifest]

# these directories are to be excluded unless CONFIG.load_"dirname" = true
dirnames = %w(debug tests fixtures protocols).reject do |k|
exclude_dirnames = %w(debug tests fixtures protocols).reject do |k|
CONFIG[:"load_#{k}"]
end
exclude_dirnames.concat [*CONFIG[:exclude]]

# loop through entries and hide those that do not below...
manifest.entries.each do |entry|

# if in /dirname or /foo.lproj/dirname -- hide it!
dirnames.each do |dirname|
exclude_dirnames.each do |dirname|
if entry[:filename] =~ /^(([^\/]+)\.lproj\/)?#{dirname}\/.+$/
entry.hide!
next
Expand Down
12 changes: 9 additions & 3 deletions lib/sproutcore/tools/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,17 @@ class Tools
:irb => false,
:filesystem => true

method_option :whitelist, :type => :string,
method_option :whitelist,
:type => :string,
:default => "Whitelist",
:desc => "The whitelist to use when building. By default, Whitelist (if present)"
method_option :blacklist, :type => :string,
method_option :blacklist,
:type => :string,
:default => "Blacklist",
:desc => "The blacklist to use when building. By default, Blacklist (if present)"
method_option :accept, :type => :string,
method_option :accept,
:type => :string,
:default => "Accept",
:desc => "The SproutCore Accept file to determine which files to include. By default, Accept (if present)"


Expand Down

0 comments on commit 88b93ce

Please sign in to comment.