Skip to content

Commit

Permalink
Use relative paths for the grammar input files
Browse files Browse the repository at this point in the history
The file paths that are passed to antlr end up in the generated output
so using absolute paths breaks caching.

Fixes marcohu#12.
  • Loading branch information
rrbutani committed May 13, 2021
1 parent 89a29cc commit c766797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/antlr/bazel/AntlrRules.java
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ AntlrRules grammars(String... grammars)

for (String grammar : grammars)
{
this.grammars.add(sandbox.resolve(grammar).toString());
this.grammars.add(grammar.toString());
}

return this;
Expand Down

0 comments on commit c766797

Please sign in to comment.