Changeset 36168 in osm for applications/editors/josm


Ignore:
Timestamp:
2023-10-11T15:18:18+02:00 (12 months ago)
Author:
taylor.smock
Message:

See #23218: Fix disabling coverage when coverage will not work (JDK 21)

When jacoco was disabled, the property jacocoagent was set to '', which added
a JVM argument '', which Java believed should be a class file. This caused the
following message:

[junitlauncher] Error: Could not find or load main class 
[junitlauncher] Caused by: java.lang.ClassNotFoundException: 

Note that both of those lines have a space at the end, but no useful information
since the class the JVM was trying to load was an empty string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/build-common.xml

    r36151 r36168  
    600600        <sequential>
    601601            <echo message="Running unit tests with JUnit"/>
    602             <jacoco:agent destfile="${plugin.test.dir}/jacoco.exec" enabled="${coverageByDefault}" inclbootstrapclasses="${jacoco.inclbootstrapclasses}" inclnolocationclasses="${jacoco.inclnolocationclasses}" property="jacocoagent"/>
     602            <jacoco:agent destfile="${plugin.test.dir}/jacoco.exec" enabled="${coverageByDefault}"
     603                          inclbootstrapclasses="${jacoco.inclbootstrapclasses}" inclnolocationclasses="${jacoco.inclnolocationclasses}"
     604                          property="jacocoagent" if:true="${coverageByDefault}"/>
    603605            <junitlauncher printsummary="${junit.printsummary}">
    604606                <classpath>
Note: See TracChangeset for help on using the changeset viewer.