Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Adding folders_to_ignore property #337

Merged
merged 4 commits into from
Jan 16, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions deploy/lib/server_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1158,12 +1158,14 @@ def deploy_src
load_html_as_xml = @properties['ml.load-html-as-xml']
load_js_as_binary = @properties['ml.load-js-as-binary']
load_css_as_binary = @properties['ml.load-css-as-binary']
folders_to_ignore = @properties['ml.ignore-folders']

modules_databases.each do |dest_db|
ignore_us = []
ignore_us << "^#{test_dir}.*$" unless test_dir.blank? || deploy_tests?(dest_db)
ignore_us << "^#{app_config_file}$"
ignore_us << "^#{test_config_file}$"
ignore_us << "^#{folders_to_ignore}$" unless folders_to_ignore.blank?

src_permissions = permissions(@properties['ml.app-role'], Roxy::ContentCapability::ER)

Expand Down
3 changes: 3 additions & 0 deletions deploy/sample/build.sample.properties
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,6 @@ local-server=localhost
#
mlcp-home=/usr/local/mlcp
mlcp-vmargs=-Xmx512m

# folder to ignore when deploying into modules database
#ignore-folders=.*/src/(node_modules|.tmp)/.*