Skip to content

Commit

Permalink
Recursively search "src" for .proto files
Browse files Browse the repository at this point in the history
  • Loading branch information
evanmiller committed Jun 1, 2011
1 parent 5c0b46d commit f389e79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rebar_protobuffs_compiler.erl
Expand Up @@ -36,7 +36,7 @@
%% ===================================================================

compile(_Config, _AppFile) ->
case filelib:wildcard("src/*.proto") of
case rebar_utils:find_files("src", ".*\\.proto$") of
[] ->
ok;
FoundFiles ->
Expand All @@ -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,
Expand Down

0 comments on commit f389e79

Please sign in to comment.