Files
spring-tools/headless-services/commons/java-properties/generate-parser.sh
2024-04-15 16:25:45 -04:00

11 lines
452 B
Bash
Executable File

#!/bin/bash
set -e
ANTLR_VERSION=4.13.1
if [ ! -f antlr-${ANTLR_VERSION}.jar ]; then
curl https://www.antlr.org/download/antlr-${ANTLR_VERSION}-complete.jar --output antlr-${ANTLR_VERSION}.jar
fi
workdir=$(pwd)
cd resources
java -jar ${workdir}/antlr-${ANTLR_VERSION}.jar JavaProperties.g4 -o ${workdir}/src/main/java/org/springframework/ide/vscode/java/properties/antlr/parser -package org.springframework.ide.vscode.java.properties.antlr.parser