mirror of https://github.com/apache/cassandra
Generate compiler options file to support Java11 in IDEA.
The change to JMX in CASSANDRA-15653 prevents the IDEA project from compiling under JDK11. This change adds the required compiler flag when the project is upgraded from Java1.8 to Java11. Patch by Jon Meredith; Reviewed by Dinesh Joshi for CASSANDRA-15738
This commit is contained in:
parent
1de8720b32
commit
c4db3f89a9
|
|
@ -2136,6 +2136,13 @@
|
|||
match="name="VM_PARAMETERS" value="(.*)""
|
||||
replace="name="VM_PARAMETERS" value="\1 ${java11-jvmargs}""
|
||||
byline="true"/>
|
||||
|
||||
<echo file=".idea/compiler.xml"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="JavacSettings">
|
||||
<option name="ADDITIONAL_OPTIONS_STRING" value="--add-exports java.rmi/sun.rmi.registry=ALL-UNNAMED" />
|
||||
</component>
|
||||
</project>]]></echo>
|
||||
</target>
|
||||
|
||||
<!-- Generate IDEA project description files -->
|
||||
|
|
|
|||
Loading…
Reference in New Issue