From 90fe37dbe60a665eb0a5123e78fa95596a15de14 Mon Sep 17 00:00:00 2001 From: Alberto Cavalcante Date: Sat, 28 Sep 2024 15:31:42 -0300 Subject: [PATCH] keep sandbox.resolve for ANTLR2 --- src/main/java/org/antlr/bazel/AntlrRules.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/antlr/bazel/AntlrRules.java b/src/main/java/org/antlr/bazel/AntlrRules.java index 996f926..f26c00a 100644 --- a/src/main/java/org/antlr/bazel/AntlrRules.java +++ b/src/main/java/org/antlr/bazel/AntlrRules.java @@ -376,7 +376,14 @@ AntlrRules grammars(String... grammars) for (String grammar : grammars) { - this.grammars.add(grammar.toString()); + if (this.version == Version.V2) + { + this.grammars.add(sandbox.resolve(grammar).toString()); + } + else + { + this.grammars.add(grammar); + } } return this;