Skip to content

Commit

Permalink
Merge pull request marklogic-community#337 from miguelrgonzalez/dev
Browse files Browse the repository at this point in the history
Adding folders_to_ignore property
  • Loading branch information
dmcassel committed Jan 16, 2015
2 parents 44369e3 + 421acc1 commit c1166fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
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)/.*

0 comments on commit c1166fc

Please sign in to comment.