Skip to content

Commit

Permalink
Ant build - MOXy tests fix (eclipse-ee4j#1907)
Browse files Browse the repository at this point in the history
Merge JVM arguments from internal store (antbuild.xml) and outside (passed with '-Dadditional.jvmargs=....' command line parameter).

Signed-off-by: Radek Felcman <radek.felcman@oracle.com>
  • Loading branch information
rfelcman committed Jul 4, 2023
1 parent f4e653c commit 350d193
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions moxy/eclipselink.moxy.test/antbuild.xml
Original file line number Diff line number Diff line change
Expand Up @@ -541,13 +541,13 @@
<mkdir dir="${report.dir}/jaxb"/>
<mkdir dir="${build.dir}/${test.dir}/${tmp.dir}"/>
<!-- Can be set e.g. in test.properties to add VM options for a particular platform/driver -->
<property name="additional.jvmargs" value="-Ddummy2=dummy --add-opens java.base/java.math=ALL-UNNAMED"/>
<property name="additional.jvmargs.merged" value="${additional.jvmargs} -Ddummy2=dummy --add-opens java.base/java.math=ALL-UNNAMED"/>
<junit jvm="${test.junit.jvm.exec}" failureproperty="junit.failed.jaxb" logfailedtests="true"
printsummary="yes" fork="true" dir="${build.dir}/${test.dir}" tempdir="${build.dir}/${test.dir}" showoutput="yes" maxmemory="1024m">
<!--<jvmarg value="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005"/>-->
<jvmarg value="-ea"/>
<jvmarg value="-javaagent:${jmockit.lib}"/>
<jvmarg line="${additional.jvmargs}"/>
<jvmarg line="${additional.jvmargs.merged}"/>
<env key="T_WORK" value="${tmp.dir}"/>
<sysproperty key="platformType" value="SAX"/>
<sysproperty key="metadataType" value="JAVA"/>
Expand Down Expand Up @@ -619,11 +619,11 @@
<mkdir dir="${report.dir}/srg/jaxb"/>
<mkdir dir="${build.dir}/${test.dir}/${tmp.dir}"/>
<!-- Can be set e.g. in test.properties to add VM options for a particular platform/driver -->
<property name="additional.jvmargs" value="-Ddummy2=dummy"/>
<property name="additional.jvmargs.merged" value="${additional.jvmargs} -Ddummy2=dummy"/>
<junit jvm="${test.junit.jvm.exec}" failureproperty="junit.failed.jaxb_srg" logfailedtests="true"
printsummary="yes" fork="true" dir="${build.dir}/${test.dir}" tempdir="${build.dir}/${test.dir}" showoutput="yes" maxmemory="1024m">
<jvmarg value="-ea"/>
<jvmarg line="${additional.jvmargs}"/>
<jvmarg line="${additional.jvmargs.merged}"/>
<env key="T_WORK" value="${tmp.dir}"/>
<sysproperty key="platformType" value="SAX"/>
<sysproperty key="metadataType" value="JAVA"/>
Expand Down

0 comments on commit 350d193

Please sign in to comment.