Skip to content

Commit 350d193

Browse files
authored
Ant build - MOXy tests fix (#1907)
Merge JVM arguments from internal store (antbuild.xml) and outside (passed with '-Dadditional.jvmargs=....' command line parameter). Signed-off-by: Radek Felcman <[email protected]>
1 parent f4e653c commit 350d193

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

moxy/eclipselink.moxy.test/antbuild.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -541,13 +541,13 @@
541541
<mkdir dir="${report.dir}/jaxb"/>
542542
<mkdir dir="${build.dir}/${test.dir}/${tmp.dir}"/>
543543
<!-- Can be set e.g. in test.properties to add VM options for a particular platform/driver -->
544-
<property name="additional.jvmargs" value="-Ddummy2=dummy --add-opens java.base/java.math=ALL-UNNAMED"/>
544+
<property name="additional.jvmargs.merged" value="${additional.jvmargs} -Ddummy2=dummy --add-opens java.base/java.math=ALL-UNNAMED"/>
545545
<junit jvm="${test.junit.jvm.exec}" failureproperty="junit.failed.jaxb" logfailedtests="true"
546546
printsummary="yes" fork="true" dir="${build.dir}/${test.dir}" tempdir="${build.dir}/${test.dir}" showoutput="yes" maxmemory="1024m">
547547
<!--<jvmarg value="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005"/>-->
548548
<jvmarg value="-ea"/>
549549
<jvmarg value="-javaagent:${jmockit.lib}"/>
550-
<jvmarg line="${additional.jvmargs}"/>
550+
<jvmarg line="${additional.jvmargs.merged}"/>
551551
<env key="T_WORK" value="${tmp.dir}"/>
552552
<sysproperty key="platformType" value="SAX"/>
553553
<sysproperty key="metadataType" value="JAVA"/>
@@ -619,11 +619,11 @@
619619
<mkdir dir="${report.dir}/srg/jaxb"/>
620620
<mkdir dir="${build.dir}/${test.dir}/${tmp.dir}"/>
621621
<!-- Can be set e.g. in test.properties to add VM options for a particular platform/driver -->
622-
<property name="additional.jvmargs" value="-Ddummy2=dummy"/>
622+
<property name="additional.jvmargs.merged" value="${additional.jvmargs} -Ddummy2=dummy"/>
623623
<junit jvm="${test.junit.jvm.exec}" failureproperty="junit.failed.jaxb_srg" logfailedtests="true"
624624
printsummary="yes" fork="true" dir="${build.dir}/${test.dir}" tempdir="${build.dir}/${test.dir}" showoutput="yes" maxmemory="1024m">
625625
<jvmarg value="-ea"/>
626-
<jvmarg line="${additional.jvmargs}"/>
626+
<jvmarg line="${additional.jvmargs.merged}"/>
627627
<env key="T_WORK" value="${tmp.dir}"/>
628628
<sysproperty key="platformType" value="SAX"/>
629629
<sysproperty key="metadataType" value="JAVA"/>

0 commit comments

Comments
 (0)