diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2018-11-24 11:22:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-24 11:22:23 -0500 |
commit | 1d23e75aab2d30aa1d22730b3da50b3924258dfc (patch) | |
tree | 79dbadc2e1731c8c08d363990872fa9818b8f9c8 /src | |
parent | a057f0ee8e5c6fcbc79373d3aa0ffb6acae5665e (diff) | |
parent | 1071a96735aa6295a58c553265f72a7a6ba62b87 (diff) |
Merge pull request #1954 from tsloughter/base-run
fix base_compiler:run to take a single directory
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_base_compiler.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rebar_base_compiler.erl b/src/rebar_base_compiler.erl index 2fb3a12..ad81c86 100644 --- a/src/rebar_base_compiler.erl +++ b/src/rebar_base_compiler.erl @@ -96,14 +96,14 @@ run(Config, FirstFiles, SourceDir, SourceExt, TargetDir, TargetExt, TargetDir :: file:filename(), SourceExt :: string(), TargetExt :: string(). -run(Config, FirstFiles, SourceDirs, SourceExt, TargetDir, TargetExt, +run(Config, FirstFiles, SourceDir, SourceExt, TargetDir, TargetExt, Compile3Fn, Opts) -> %% Convert simple extension to proper regex SourceExtRe = "^(?!\\._).*\\" ++ SourceExt ++ [$$], Recursive = proplists:get_value(recursive, Opts, true), %% Find all possible source files - FoundFiles = rebar_utils:find_files_in_dirs(SourceDirs, SourceExtRe, Recursive), + FoundFiles = rebar_utils:find_files(SourceDir, SourceExtRe, Recursive), %% Remove first files from found files RestFiles = [Source || Source <- FoundFiles, not lists:member(Source, FirstFiles)], |