build.xml
changeset 34825 a55bab8b0e2f
parent 34510 bb6ad56d12fe
child 34838 faf7ea329834
--- a/build.xml	Thu Sep 27 00:00:16 2018 +0530
+++ b/build.xml	Fri Sep 28 11:29:31 2018 +0200
@@ -108,6 +108,10 @@
       </or>
     </not>
   </condition>
+  
+  <condition property="jvm.arg.line" value="" else="--add-opens java.base/java.lang=ALL-UNNAMED">
+    <equals arg1="${ant.java.version}" arg2="1.8"/>
+  </condition>
 
   <condition property="calculate.core.rev">
    <istrue value="${calculate.core.revision}"/>
@@ -774,6 +778,7 @@
   <target name="apply.module" depends="compile.apply.module">
     <java classname="org.openbravo.erpCommon.modules.ApplyModuleTask" fork="true" maxmemory="${build.maxmemory}" failonerror="true">
       <arg line="'${base.src}' '${friendlyWarnings}' '${forceRefData}'" />
+      <jvmarg line="${jvm.arg.line}" />
       <classpath refid="apply.module.runtime.classpath" />
     </java>
    <delete includeEmptyDirs="true"  dir="${build.apply.module}" />