summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2015-07-16 22:17:31 -0500
committerTristan Sloughter <t@crashfast.com>2015-07-16 22:17:31 -0500
commit6f95911d3244c063222b4b4bcbb6c2e2271c5f4d (patch)
treea05257b144113ece29f22dfd63fa49125de54f5c /src
parent7797a66e8834d9437e9605f53fcae1a768255c62 (diff)
only look for top level apps and those directly under apps/ or lib/
Diffstat (limited to 'src')
-rw-r--r--src/rebar.hrl2
-rw-r--r--src/rebar_app_discover.erl12
2 files changed, 3 insertions, 11 deletions
diff --git a/src/rebar.hrl b/src/rebar.hrl
index 4540b1a..8a702df 100644
--- a/src/rebar.hrl
+++ b/src/rebar.hrl
@@ -15,7 +15,7 @@
-define(DEFAULT_BASE_DIR, "_build").
-define(DEFAULT_ROOT_DIR, ".").
--define(DEFAULT_PROJECT_APP_DIRS, ["apps", "lib", "."]).
+-define(DEFAULT_PROJECT_APP_DIRS, ["apps/*", "lib/*", "."]).
-define(DEFAULT_CHECKOUTS_DIR, "_checkouts").
-define(DEFAULT_DEPS_DIR, "lib").
-define(DEFAULT_PLUGINS_DIR, "plugins").
diff --git a/src/rebar_app_discover.erl b/src/rebar_app_discover.erl
index 9c4a5ff..f55a4d5 100644
--- a/src/rebar_app_discover.erl
+++ b/src/rebar_app_discover.erl
@@ -94,25 +94,17 @@ all_app_dirs(LibDirs) ->
app_dirs(LibDir) ->
Path1 = filename:join([LibDir,
- "*",
- "src",
- "*.app.src"]),
- Path2 = filename:join([LibDir,
"src",
"*.app.src"]),
- Path3 = filename:join([LibDir,
- "*",
- "ebin",
- "*.app"]),
- Path4 = filename:join([LibDir,
+ Path2 = filename:join([LibDir,
"ebin",
"*.app"]),
lists:usort(lists:foldl(fun(Path, Acc) ->
Files = filelib:wildcard(ec_cnv:to_list(Path)),
[app_dir(File) || File <- Files] ++ Acc
- end, [], [Path1, Path2, Path3, Path4])).
+ end, [], [Path1, Path2])).
find_unbuilt_apps(LibDirs) ->
find_apps(LibDirs, invalid).