Set compiler source/target levels to 1.6

This commit is contained in:
Mikolaj Izdebski 2019-10-28 14:22:49 +01:00
parent 55aae16aa8
commit 7110c8dfdc

View File

@ -61,11 +61,10 @@ sed -i 's/\r//' LICENSE.txt README.txt
# Unable to run coverage: use log4j12 but switch to log4j 2.x # Unable to run coverage: use log4j12 but switch to log4j 2.x
sed -i.coverage "s|coverage, jars|jars|" build.xml sed -i.coverage "s|coverage, jars|jars|" build.xml
%build
mkdir lib mkdir lib
build-jar-repository lib xerces-j2 xml-commons-apis jaxen junit isorelax xalan-j2 xalan-j2-serializer build-jar-repository lib xerces-j2 xml-commons-apis jaxen junit isorelax xalan-j2 xalan-j2-serializer
ant -Dversion=%{version} -Dcompile.source=1.6 -Dcompile.target=1.6 -Dj2se.apidoc=%{_javadocdir}/java maven
%build
ant -Dversion=%{version} -Dj2se.apidoc=%{_javadocdir}/java maven
# Make jar into an OSGi bundle # Make jar into an OSGi bundle
# XXX disabled until BND is fixed # XXX disabled until BND is fixed