SHA256
1
0
forked from pool/adaptx

Fix build with java9

OBS-URL: https://build.opensuse.org/package/show/Java:packages/adaptx?expand=0&rev=18
This commit is contained in:
Fridrich Strba 2017-09-14 11:15:47 +00:00 committed by Git OBS Bridge
parent 0ddb7e6974
commit 519b24f1a5
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Sep 14 11:15:20 UTC 2017 - fstrba@suse.com
- Fix building with jdk9 by specifying java source and target 1.6
------------------------------------------------------------------- -------------------------------------------------------------------
Fri May 19 11:39:08 UTC 2017 - tchvatal@suse.com Fri May 19 11:39:08 UTC 2017 - tchvatal@suse.com

View File

@ -70,9 +70,9 @@ done
%build %build
perl -p -i -e 's|classic|modern|' src/build.xml perl -p -i -e 's|classic|modern|' src/build.xml
export CLASSPATH=$(build-classpath xml-commons-apis log4j xerces-j2 xerces-j2-xml-apis) export CLASSPATH=$(build-classpath xml-commons-apis log4j xerces-j2 xerces-j2-xml-apis)
ant -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 -buildfile src/build.xml jar javadoc ant -Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 -buildfile src/build.xml jar javadoc
CLASSPATH=$CLASSPATH:dist/adaptx_%{version}.jar CLASSPATH=$CLASSPATH:dist/adaptx_%{version}.jar
ant -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 -buildfile src/build.xml doc ant -Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 -buildfile src/build.xml doc
%install %install
# jar # jar