There was an error while loading. Please reload this page.
1 parent 1b2703f commit 937a91dCopy full SHA for 937a91d
1 file changed
codegen.sh
@@ -4,7 +4,10 @@ set -x
4
5
pip install antlr4-tools
6
7
-PACKAGE_NAME='com/walmartlabs/lacinia'
+export ANTLR4_TOOLS_ANTLR_VERSION=4.13.1
8
9
-antlr4 resources/$PACKAGE_NAME/Graphql.g4 -o java/$PACKAGE_NAME -Xexact-output-dir -package com.walmartlabs.lacinia
10
-antlr4 resources/$PACKAGE_NAME/GraphqlSchema.g4 -o java/$PACKAGE_NAME -Xexact-output-dir -package com.walmartlabs.lacinia
+PACKAGE_NAME=com.walmartlabs.lacinia
+DIR=$(echo $PACKAGE_NAME | tr . /)
11
+
12
+antlr4 resources/$DIR/Graphql.g4 -o java/$DIR -Xexact-output-dir -package $PACKAGE_NAME
13
+antlr4 resources/$DIR/GraphqlSchema.g4 -o java/$DIR -Xexact-output-dir -package $PACKAGE_NAME
0 commit comments