summaryrefslogtreecommitdiff
path: root/inttest/t_custom_config/custom_config.erl
diff options
context:
space:
mode:
authorTim Watson <watson.timothy@gmail.com>2011-08-01 08:12:36 +0100
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2011-08-18 15:35:30 +0200
commit5bb536f83985dfb840cac7c59c5473af1cae12bb (patch)
tree6b0fec6be69f4f41d28b308730001c0092fdb342 /inttest/t_custom_config/custom_config.erl
parentda31f90d1dc1674c5ad1e084fce897e5fdd5f07b (diff)
Respect the --config switch when given
Currently the --config switch does not work because when loading a new rebar config the global setting is ignored for all paths. This patch provides a check when loading new rebar config to see whether or not the current config path matches the `base_dir` set in global conf, which produces the expected behaviour.
Diffstat (limited to 'inttest/t_custom_config/custom_config.erl')
-rw-r--r--inttest/t_custom_config/custom_config.erl6
1 files changed, 6 insertions, 0 deletions
diff --git a/inttest/t_custom_config/custom_config.erl b/inttest/t_custom_config/custom_config.erl
new file mode 100644
index 0000000..8656201
--- /dev/null
+++ b/inttest/t_custom_config/custom_config.erl
@@ -0,0 +1,6 @@
+-module(custom_config).
+
+-compile(export_all).
+
+test() ->
+ ok.