Fix build with java 9

OBS-URL: https://build.opensuse.org/package/show/Java:packages/hsqldb?expand=0&rev=24
This commit is contained in:
Fridrich Strba 2017-09-08 06:52:04 +00:00 committed by Git OBS Bridge
parent cea757d44b
commit 60b4b8ff62
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Sep 8 06:50:36 UTC 2017 - fstrba@suse.com
- Specify java source and target version 1.7 in order to allow
build with jdk9
-------------------------------------------------------------------
Fri May 19 11:49:45 UTC 2017 - mpluskal@suse.com

View File

@ -123,7 +123,7 @@ sed -i -e 's|doc/apidocs|%{_javadocdir}/%{name}|g' index.html
export CLASSPATH=$(build-classpath servletapi5 junit)
pushd build
export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
export JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF8 -Dant.build.javac.source=1.7 -Dant.build.javac.target=1.7"
ant hsqldb javadoc
popd