Skip to content

Commit

Permalink
Adding folders_to_ignore property
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Rodriguez committed Jan 15, 2015
1 parent e9cc219 commit f83dc7e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion deploy/lib/server_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@ def xqsync
def deploy_modules
ignore_us = []
ignore_us = ["^#{@properties['ml.xquery-test.dir']}.*$"] if @properties['ml.xquery-test.dir']
ignore_us << "^#{@properties['folders_to_ignore']}$" if @properties['folders_to_ignore']
app_config_file = "#{@properties['ml.xquery.dir']}/app/config/config.xqy"
ignore_us << "^#{app_config_file}$"
load_data @properties["ml.xquery.dir"], {
Expand Down Expand Up @@ -937,4 +938,4 @@ def self.properties

properties = ServerConfig.substitute_properties(properties, properties, "ml.")
end
end
end
5 changes: 4 additions & 1 deletion deploy/sample/build.sample.properties
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,7 @@ authentication-method=digest
local-server=localhost
#dev-server=
#cert-server=
#prod-server=
#prod-server=

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

0 comments on commit f83dc7e

Please sign in to comment.