Fix build with java 9

OBS-URL: https://build.opensuse.org/package/show/Java:packages/antlr?expand=0&rev=33
This commit is contained in:
Fridrich Strba 2017-09-06 18:06:08 +00:00 committed by Git OBS Bridge
parent 93341fa3f1
commit c957d0ca63
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Sep 6 18:02:30 UTC 2017 - fstrba@suse.com
- fixes necessary to compile with Java 9
* set javac source and target to 1.6
-------------------------------------------------------------------
Fri Jun 9 09:43:34 UTC 2017 - tchvatal@suse.com

View File

@ -119,7 +119,7 @@ find | grep "\(ShowString.java$\|StreamConverter.java$\)" && exit 42
%build
ant \
-Dj2se.apidoc=%{_javadocdir}/java \
-Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 \
-Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 \
jar
%configure
make -j1