Skip to content

Commit

Permalink
Allow us to specify jvm args during single tests via local.properties
Browse files Browse the repository at this point in the history
  • Loading branch information
mattharris committed Nov 24, 2019
1 parent bfac31a commit 4d323f8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build.xml
Expand Up @@ -33,6 +33,8 @@
<!-- Things you might want to set: -->
<!-- # JVM arguments to pass to the JVM running the JMRI application -->
<!-- jvm.args= -->
<!-- # JVM arguments to pass to the JVM running single tests -->
<!-- test-single.jvmargs= -->
<!-- # paths to append to the classpath -->
<!-- cp.append= -->
<!-- # paths to prepend to the classpath -->
Expand Down Expand Up @@ -92,6 +94,9 @@
<isset property="jvm.args"/>
</not>
</condition>
<condition property="test-single.jvmargs" value="">
<not><isset property="test-single.jvmargs"/></not>
</condition>
<condition property="cp.append" value="">
<not>
<isset property="cp.append"/>
Expand Down Expand Up @@ -710,7 +715,6 @@
<property name="test.test" value="${test.includes}Test"/>
</target>
<target depends="-test-single-src,-test-single-test,tests,runtime-library-selection" description="Run single unit test." name="test-single">
<property name="test-single.jvmargs" value=""/>
<junit haltonerror="false" haltonfailure="false" printsummary="yes" fork="yes" dir="." errorProperty="test.failed" failureProperty="test.failed">
<sysproperty key="java.security.policy" value="${libdir}/security.policy"/>
<sysproperty key="apple.laf.useScreenMenuBar" value="true"/>
Expand All @@ -735,7 +739,6 @@
</target>

<target depends="-test-single-src,-test-single-test,tests,runtime-library-selection" description="Run single unit test." name="test-single-coverage">
<property name="test-single.jvmargs" value=""/>
<jacoco:coverage destfile="${jacocoexec}" excludes="org.slf4j.*">
<junit haltonerror="false" haltonfailure="false" printsummary="yes" fork="yes" dir="." errorProperty="test.failed" failureProperty="test.failed">
<sysproperty key="java.security.policy" value="${libdir}/security.policy"/>
Expand Down

0 comments on commit 4d323f8

Please sign in to comment.