Ninja: fix jdk11 build

This commit is contained in:
Sam Tunnicliffe 2020-03-25 19:31:41 +00:00
parent c768a14fb1
commit b9c7a90e8a
1 changed files with 8 additions and 0 deletions

View File

@ -204,6 +204,13 @@
</not>
</condition>
<!-- needed to compile org.apache.cassandra.utils.JMXServerUtils -->
<condition property="jdk11-javac-exports" value="--add-exports java.rmi/sun.rmi.registry=ALL-UNNAMED" else="">
<not>
<equals arg1="${ant.java.version}" arg2="1.8"/>
</not>
</condition>
<condition property="build.java.11">
<istrue value="${use.jdk11}"/>
</condition>
@ -936,6 +943,7 @@
<src path="${build.src.java}"/>
<src path="${build.src.gen-java}"/>
<compilerarg value="-XDignore.symbol.file"/>
<compilerarg line="${jdk11-javac-exports}"/>
<classpath>
<path refid="cassandra.classpath"/>
</classpath>