Fix issue with escape sequences in properties file
See: https://github.com/spring-projects/sts4/issues/314
This commit is contained in:
10
headless-services/commons/java-properties/generate-parser.sh
Executable file
10
headless-services/commons/java-properties/generate-parser.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
ANTLR_VERSION=4.5.3
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user