summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Smith <dizzyd@dizzyd.com>2011-06-06 08:33:50 -0700
committerDave Smith <dizzyd@dizzyd.com>2011-06-06 08:33:50 -0700
commit719c9a50c79c4f32aa2b8fabe34452e51d9c5023 (patch)
tree72d624dee9861d613e40ce63be4e8b04ddac70fc
parent7ac00a73e84300d589a650c3019887d628f044ef (diff)
parentf389e79d392b5419cdc762dc1e6f7fd6cb291354 (diff)
Merge pull request #81 from evanmiller/em-protobuffs
Recursively search "src" for .proto files
-rw-r--r--src/rebar_protobuffs_compiler.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rebar_protobuffs_compiler.erl b/src/rebar_protobuffs_compiler.erl
index 421b258..249588c 100644
--- a/src/rebar_protobuffs_compiler.erl
+++ b/src/rebar_protobuffs_compiler.erl
@@ -36,7 +36,7 @@
%% ===================================================================
compile(_Config, _AppFile) ->
- case filelib:wildcard("src/*.proto") of
+ case rebar_utils:find_files("src", ".*\\.proto$") of
[] ->
ok;
FoundFiles ->
@@ -60,7 +60,7 @@ compile(_Config, _AppFile) ->
clean(_Config, _AppFile) ->
%% Get a list of generated .beam and .hrl files and then delete them
- Protos = filelib:wildcard("src/*.proto"),
+ Protos = rebar_utils:find_files("src", ".*\\.proto$"),
BeamFiles = [fq_beam_file(F) || F <- Protos],
HrlFiles = [fq_hrl_file(F) || F <- Protos],
Targets = BeamFiles ++ HrlFiles,