Fix issue with escape sequences in properties file

See: https://github.com/spring-projects/sts4/issues/314
This commit is contained in:
Kris De Volder
2019-07-05 16:36:15 -07:00
parent 46b0fd6771
commit b96f0be4c6
11 changed files with 211 additions and 124 deletions

View 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