Accepting request 521758 from Java:packages

Fix builds with java 9

OBS-URL: https://build.opensuse.org/request/show/521758
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/antlr?expand=0&rev=35
This commit is contained in:
Dominique Leuenberger 2017-09-13 20:18:45 +00:00 committed by Git OBS Bridge
commit aaa3768b9c
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