Specify -source and -target for antlr-ant.

This commit is contained in:
Jerry James 2020-07-24 17:11:53 -06:00
parent 317a12c99e
commit a7e125e706
1 changed files with 2 additions and 1 deletions

View File

@ -196,7 +196,8 @@ popd
# build ant task
pushd antlr-ant/main/antlr3-task/
export CLASSPATH=$(build-classpath ant)
javac -encoding ISO-8859-1 antlr3-src/org/apache/tools/ant/antlr/ANTLR3.java
javac -encoding ISO-8859-1 -source 1.8 -target 1.8 \
antlr3-src/org/apache/tools/ant/antlr/ANTLR3.java
jar cvf ant-antlr3.jar \
-C antlr3-src org/apache/tools/ant/antlr/antlib.xml \
-C antlr3-src org/apache/tools/ant/antlr/ANTLR3.class