You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@commons.apache.org by gg...@apache.org on 2022/03/17 19:32:31 UTC
svn commit: r1078854 [14/25] - in /websites/production/commons/content/proper/commons-release-plugin: ./ apidocs/ apidocs/org/apache/commons/release/plugin/ apidocs/org/apache/commons/release/plugin/class-use/ apidocs/org/apache/commons/release/plugin/...
Modified: websites/production/commons/content/proper/commons-release-plugin/jacoco/org.apache.commons.release.plugin.mojos/CommonsDistributionDetachmentMojo.html
==============================================================================
--- websites/production/commons/content/proper/commons-release-plugin/jacoco/org.apache.commons.release.plugin.mojos/CommonsDistributionDetachmentMojo.html (original)
+++ websites/production/commons/content/proper/commons-release-plugin/jacoco/org.apache.commons.release.plugin.mojos/CommonsDistributionDetachmentMojo.html Thu Mar 17 19:32:29 2022
@@ -1 +1 @@
-<?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>CommonsDistributionDetachmentMojo</title><script type="text/javascript" src="../jacoco-resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons Release Plugin</a> > <a href="index.html" class="el_package">org.apache.commons.release.plugin.mojos</a> > <span class="el_class">CommonsDistributionDetachmentMojo</span></div><h1>CommonsDistri
butionDetachmentMojo</h1><table class="coverage" cellspacing="0" id="coveragetable"><thead><tr><td class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">63 of 402</td><td class="ctr2">84%</td><td class="ba
r">3 of 20</td><td class="ctr2">85%</td><td class="ctr1">3</td><td class="ctr2">19</td><td class="ctr1">14</td><td class="ctr2">86</td><td class="ctr1">0</td><td class="ctr2">9</td></tr></tfoot><tbody><tr><td id="a6"><a href="CommonsDistributionDetachmentMojo.java.html#L154" class="el_method">putAttachedArtifactInSha512Map(Artifact)</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="37" height="10" title="30" alt="30"/><img src="../jacoco-resources/greenbar.gif" width="25" height="10" title="21" alt="21"/></td><td class="ctr2" id="c8">41%</td><td class="bar" id="d3"/><td class="ctr2" id="e3">n/a</td><td class="ctr1" id="f1">0</td><td class="ctr2" id="g3">1</td><td class="ctr1" id="h0">6</td><td class="ctr2" id="i3">11</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a5"><a href="CommonsDistributionDetachmentMojo.java.html#L218" class="el_method">hashArtifacts()</a></td><td class="bar" id="b1"><img src="../jacoco-resourc
es/redbar.gif" width="19" height="10" title="16" alt="16"/><img src="../jacoco-resources/greenbar.gif" width="76" height="10" title="62" alt="62"/></td><td class="ctr2" id="c7">79%</td><td class="bar" id="d1"><img src="../jacoco-resources/greenbar.gif" width="34" height="10" title="4" alt="4"/></td><td class="ctr2" id="e0">100%</td><td class="ctr1" id="f2">0</td><td class="ctr2" id="g1">3</td><td class="ctr1" id="h2">2</td><td class="ctr2" id="i1">13</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a2"><a href="CommonsDistributionDetachmentMojo.java.html#L114" class="el_method">execute()</a></td><td class="bar" id="b2"><img src="../jacoco-resources/redbar.gif" width="12" height="10" title="10" alt="10"/><img src="../jacoco-resources/greenbar.gif" width="107" height="10" title="87" alt="87"/></td><td class="ctr2" id="c5">89%</td><td class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="25" height="10" title="3" alt="3"/><img src="../ja
coco-resources/greenbar.gif" width="94" height="10" title="11" alt="11"/></td><td class="ctr2" id="e2">78%</td><td class="ctr1" id="f0">3</td><td class="ctr2" id="g0">8</td><td class="ctr1" id="h1">4</td><td class="ctr2" id="i0">25</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a8"><a href="CommonsDistributionDetachmentMojo.java.html#L178" class="el_method">writeAllArtifactsInSha512PropertiesFile()</a></td><td class="bar" id="b3"><img src="../jacoco-resources/redbar.gif" width="8" height="10" title="7" alt="7"/><img src="../jacoco-resources/greenbar.gif" width="39" height="10" title="32" alt="32"/></td><td class="ctr2" id="c6">82%</td><td class="bar" id="d4"/><td class="ctr2" id="e4">n/a</td><td class="ctr1" id="f3">0</td><td class="ctr2" id="g4">1</td><td class="ctr1" id="h3">2</td><td class="ctr2" id="i4">8</td><td class="ctr1" id="j3">0</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a1"><a href="CommonsDistributionDetachmentMojo.java.html#
L195" class="el_method">copyRemovedArtifactsToWorkingDirectory()</a></td><td class="bar" id="b4"><img src="../jacoco-resources/greenbar.gif" width="91" height="10" title="74" alt="74"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d2"><img src="../jacoco-resources/greenbar.gif" width="17" height="10" title="2" alt="2"/></td><td class="ctr2" id="e1">100%</td><td class="ctr1" id="f4">0</td><td class="ctr2" id="g2">2</td><td class="ctr1" id="h4">0</td><td class="ctr2" id="i2">13</td><td class="ctr1" id="j4">0</td><td class="ctr2" id="k4">1</td></tr><tr><td id="a7"><a href="CommonsDistributionDetachmentMojo.java.html#L66" class="el_method">static {...}</a></td><td class="bar" id="b5"><img src="../jacoco-resources/greenbar.gif" width="29" height="10" title="24" alt="24"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d5"/><td class="ctr2" id="e5">n/a</td><td class="ctr1" id="f5">0</td><td class="ctr2" id="g5">1</td><td class="ctr1" id="h5">0</td><td class="ctr2"
id="i5">7</td><td class="ctr1" id="j5">0</td><td class="ctr2" id="k5">1</td></tr><tr><td id="a4"><a href="CommonsDistributionDetachmentMojo.java.html#L245" class="el_method">getSha512FilePath(File, File)</a></td><td class="bar" id="b6"><img src="../jacoco-resources/greenbar.gif" width="27" height="10" title="22" alt="22"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d6"/><td class="ctr2" id="e6">n/a</td><td class="ctr1" id="f6">0</td><td class="ctr2" id="g6">1</td><td class="ctr1" id="h6">0</td><td class="ctr2" id="i6">5</td><td class="ctr1" id="j6">0</td><td class="ctr2" id="k6">1</td></tr><tr><td id="a0"><a href="CommonsDistributionDetachmentMojo.java.html#L55" class="el_method">CommonsDistributionDetachmentMojo()</a></td><td class="bar" id="b7"><img src="../jacoco-resources/greenbar.gif" width="16" height="10" title="13" alt="13"/></td><td class="ctr2" id="c3">100%</td><td class="bar" id="d7"/><td class="ctr2" id="e7">n/a</td><td class="ctr1" id="f7">0</td><td class
="ctr2" id="g7">1</td><td class="ctr1" id="h7">0</td><td class="ctr2" id="i7">3</td><td class="ctr1" id="j7">0</td><td class="ctr2" id="k7">1</td></tr><tr><td id="a3"><a href="CommonsDistributionDetachmentMojo.java.html#L260" class="el_method">getArtifactKey(Artifact)</a></td><td class="bar" id="b8"><img src="../jacoco-resources/greenbar.gif" width="4" height="10" title="4" alt="4"/></td><td class="ctr2" id="c4">100%</td><td class="bar" id="d8"/><td class="ctr2" id="e8">n/a</td><td class="ctr1" id="f8">0</td><td class="ctr2" id="g8">1</td><td class="ctr1" id="h8">0</td><td class="ctr2" id="i8">1</td><td class="ctr1" id="j8">0</td><td class="ctr2" id="k8">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.3.201901230119</span></div></body></html>
\ No newline at end of file
+<?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>CommonsDistributionDetachmentMojo</title><script type="text/javascript" src="../jacoco-resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons Release Plugin</a> > <a href="index.html" class="el_package">org.apache.commons.release.plugin.mojos</a> > <span class="el_class">CommonsDistributionDetachmentMojo</span></div><h1>CommonsDistri
butionDetachmentMojo</h1><table class="coverage" cellspacing="0" id="coveragetable"><thead><tr><td class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">95 of 430</td><td class="ctr2">77%</td><td class="ba
r">3 of 20</td><td class="ctr2">85%</td><td class="ctr1">3</td><td class="ctr2">19</td><td class="ctr1">21</td><td class="ctr2">93</td><td class="ctr1">0</td><td class="ctr2">9</td></tr></tfoot><tbody><tr><td id="a2"><a href="CommonsDistributionDetachmentMojo.java.html#L116" class="el_method">execute()</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="42" height="10" title="42" alt="42"/><img src="../jacoco-resources/greenbar.gif" width="77" height="10" title="77" alt="77"/></td><td class="ctr2" id="c7">64%</td><td class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="30" height="10" title="3" alt="3"/><img src="../jacoco-resources/greenbar.gif" width="90" height="10" title="9" alt="9"/></td><td class="ctr2" id="e3">75%</td><td class="ctr1" id="f0">3</td><td class="ctr2" id="g0">7</td><td class="ctr1" id="h0">11</td><td class="ctr2" id="i0">31</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a6"><a href=
"CommonsDistributionDetachmentMojo.java.html#L171" class="el_method">putAttachedArtifactInSha512Map(Artifact)</a></td><td class="bar" id="b1"><img src="../jacoco-resources/redbar.gif" width="30" height="10" title="30" alt="30"/><img src="../jacoco-resources/greenbar.gif" width="26" height="10" title="26" alt="26"/></td><td class="ctr2" id="c8">46%</td><td class="bar" id="d2"><img src="../jacoco-resources/greenbar.gif" width="20" height="10" title="2" alt="2"/></td><td class="ctr2" id="e0">100%</td><td class="ctr1" id="f1">0</td><td class="ctr2" id="g2">2</td><td class="ctr1" id="h1">6</td><td class="ctr2" id="i3">12</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a5"><a href="CommonsDistributionDetachmentMojo.java.html#L237" class="el_method">hashArtifacts()</a></td><td class="bar" id="b2"><img src="../jacoco-resources/redbar.gif" width="16" height="10" title="16" alt="16"/><img src="../jacoco-resources/greenbar.gif" width="62" height="10" title="6
2" alt="62"/></td><td class="ctr2" id="c6">79%</td><td class="bar" id="d1"><img src="../jacoco-resources/greenbar.gif" width="40" height="10" title="4" alt="4"/></td><td class="ctr2" id="e1">100%</td><td class="ctr1" id="f2">0</td><td class="ctr2" id="g1">3</td><td class="ctr1" id="h2">2</td><td class="ctr2" id="i1">13</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a8"><a href="CommonsDistributionDetachmentMojo.java.html#L197" class="el_method">writeAllArtifactsInSha512PropertiesFile()</a></td><td class="bar" id="b3"><img src="../jacoco-resources/redbar.gif" width="7" height="10" title="7" alt="7"/><img src="../jacoco-resources/greenbar.gif" width="33" height="10" title="33" alt="33"/></td><td class="ctr2" id="c5">82%</td><td class="bar" id="d4"/><td class="ctr2" id="e4">n/a</td><td class="ctr1" id="f3">0</td><td class="ctr2" id="g4">1</td><td class="ctr1" id="h3">2</td><td class="ctr2" id="i4">8</td><td class="ctr1" id="j3">0</td><td class="ctr2"
id="k3">1</td></tr><tr><td id="a1"><a href="CommonsDistributionDetachmentMojo.java.html#L214" class="el_method">copyRemovedArtifactsToWorkingDirectory()</a></td><td class="bar" id="b4"><img src="../jacoco-resources/greenbar.gif" width="74" height="10" title="74" alt="74"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d3"><img src="../jacoco-resources/greenbar.gif" width="20" height="10" title="2" alt="2"/></td><td class="ctr2" id="e2">100%</td><td class="ctr1" id="f4">0</td><td class="ctr2" id="g3">2</td><td class="ctr1" id="h4">0</td><td class="ctr2" id="i2">13</td><td class="ctr1" id="j4">0</td><td class="ctr2" id="k4">1</td></tr><tr><td id="a7"><a href="CommonsDistributionDetachmentMojo.java.html#L68" class="el_method">static {...}</a></td><td class="bar" id="b5"><img src="../jacoco-resources/greenbar.gif" width="24" height="10" title="24" alt="24"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d5"/><td class="ctr2" id="e5">n/a</td><td class="ctr1" id="
f5">0</td><td class="ctr2" id="g5">1</td><td class="ctr1" id="h5">0</td><td class="ctr2" id="i5">7</td><td class="ctr1" id="j5">0</td><td class="ctr2" id="k5">1</td></tr><tr><td id="a4"><a href="CommonsDistributionDetachmentMojo.java.html#L264" class="el_method">getSha512FilePath(File, File)</a></td><td class="bar" id="b6"><img src="../jacoco-resources/greenbar.gif" width="22" height="10" title="22" alt="22"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d6"/><td class="ctr2" id="e6">n/a</td><td class="ctr1" id="f6">0</td><td class="ctr2" id="g6">1</td><td class="ctr1" id="h6">0</td><td class="ctr2" id="i6">5</td><td class="ctr1" id="j6">0</td><td class="ctr2" id="k6">1</td></tr><tr><td id="a0"><a href="CommonsDistributionDetachmentMojo.java.html#L57" class="el_method">CommonsDistributionDetachmentMojo()</a></td><td class="bar" id="b7"><img src="../jacoco-resources/greenbar.gif" width="13" height="10" title="13" alt="13"/></td><td class="ctr2" id="c3">100%</td><td class
="bar" id="d7"/><td class="ctr2" id="e7">n/a</td><td class="ctr1" id="f7">0</td><td class="ctr2" id="g7">1</td><td class="ctr1" id="h7">0</td><td class="ctr2" id="i7">3</td><td class="ctr1" id="j7">0</td><td class="ctr2" id="k7">1</td></tr><tr><td id="a3"><a href="CommonsDistributionDetachmentMojo.java.html#L279" class="el_method">getArtifactKey(Artifact)</a></td><td class="bar" id="b8"><img src="../jacoco-resources/greenbar.gif" width="4" height="10" title="4" alt="4"/></td><td class="ctr2" id="c4">100%</td><td class="bar" id="d8"/><td class="ctr2" id="e8">n/a</td><td class="ctr1" id="f8">0</td><td class="ctr2" id="g8">1</td><td class="ctr1" id="h8">0</td><td class="ctr2" id="i8">1</td><td class="ctr1" id="j8">0</td><td class="ctr2" id="k8">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.7.202105040129</span></div></body></html>
\ No newline at end of file
Modified: websites/production/commons/content/proper/commons-release-plugin/jacoco/org.apache.commons.release.plugin.mojos/CommonsDistributionDetachmentMojo.java.html
==============================================================================
--- websites/production/commons/content/proper/commons-release-plugin/jacoco/org.apache.commons.release.plugin.mojos/CommonsDistributionDetachmentMojo.java.html (original)
+++ websites/production/commons/content/proper/commons-release-plugin/jacoco/org.apache.commons.release.plugin.mojos/CommonsDistributionDetachmentMojo.java.html Thu Mar 17 19:32:29 2022
@@ -17,10 +17,11 @@
package org.apache.commons.release.plugin.mojos;
import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
import java.io.PrintWriter;
+import java.nio.file.Files;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
@@ -31,6 +32,7 @@ import java.util.Set;
import org.apache.commons.codec.digest.DigestUtils;
import org.apache.commons.collections4.properties.SortedProperties;
import org.apache.commons.lang3.StringUtils;
+import org.apache.commons.lang3.reflect.MethodUtils;
import org.apache.commons.release.plugin.SharedFunctions;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.plugin.AbstractMojo;
@@ -52,7 +54,7 @@ import org.apache.maven.project.MavenPro
defaultPhase = LifecyclePhase.VERIFY,
threadSafe = true,
aggregator = true)
-<span class="fc" id="L55">public class CommonsDistributionDetachmentMojo extends AbstractMojo {</span>
+<span class="fc" id="L57">public class CommonsDistributionDetachmentMojo extends AbstractMojo {</span>
/**
* A list of "artifact types" in the Maven vernacular, to
@@ -63,26 +65,26 @@ import org.apache.maven.project.MavenPro
*/
private static final Set<String> ARTIFACT_TYPES_TO_DETACH;
static {
-<span class="fc" id="L66"> final Set<String> hashSet = new HashSet<>();</span>
-<span class="fc" id="L67"> hashSet.add("zip");</span>
-<span class="fc" id="L68"> hashSet.add("tar.gz");</span>
-<span class="fc" id="L69"> hashSet.add("zip.asc");</span>
-<span class="fc" id="L70"> hashSet.add("tar.gz.asc");</span>
-<span class="fc" id="L71"> ARTIFACT_TYPES_TO_DETACH = Collections.unmodifiableSet(hashSet);</span>
-<span class="fc" id="L72"> }</span>
+<span class="fc" id="L68"> final Set<String> hashSet = new HashSet<>();</span>
+<span class="fc" id="L69"> hashSet.add("zip");</span>
+<span class="fc" id="L70"> hashSet.add("tar.gz");</span>
+<span class="fc" id="L71"> hashSet.add("zip.asc");</span>
+<span class="fc" id="L72"> hashSet.add("tar.gz.asc");</span>
+<span class="fc" id="L73"> ARTIFACT_TYPES_TO_DETACH = Collections.unmodifiableSet(hashSet);</span>
+<span class="fc" id="L74"> }</span>
/**
* This list is supposed to hold the Maven references to the aforementioned artifacts so that we
* can upload them to svn after they've been detached from the Maven deployment.
*/
-<span class="fc" id="L78"> private final List<Artifact> detachedArtifacts = new ArrayList<>();</span>
+<span class="fc" id="L80"> private final List<Artifact> detachedArtifacts = new ArrayList<>();</span>
/**
* A {@link SortedProperties} of {@link Artifact} â {@link String} containing the sha512 signatures
* for the individual artifacts, where the {@link Artifact} is represented as:
* <code>groupId:artifactId:version:type=sha512</code>.
*/
-<span class="fc" id="L85"> private final SortedProperties artifactSha512s = new SortedProperties();</span>
+<span class="fc" id="L87"> private final SortedProperties artifactSha512s = new SortedProperties();</span>
/**
* The maven project context injection so that we can get a hold of the variables at hand.
@@ -111,37 +113,52 @@ import org.apache.maven.project.MavenPro
@Override
public void execute() throws MojoExecutionException {
-<span class="pc bpc" id="L114" title="1 of 2 branches missed."> if (!isDistModule) {</span>
-<span class="nc" id="L115"> getLog().info(</span>
- "This module is marked as a non distribution or assembly module, and the plugin will not run.");
-<span class="nc" id="L117"> return;</span>
+<span class="pc bpc" id="L116" title="1 of 2 branches missed."> if (!isDistModule) {</span>
+<span class="nc" id="L117"> getLog().info("This module is marked as a non distribution or assembly module, and the plugin will not run.");</span>
+<span class="nc" id="L118"> return;</span>
}
-<span class="fc bfc" id="L119" title="All 2 branches covered."> if (StringUtils.isEmpty(distSvnStagingUrl)) {</span>
-<span class="fc" id="L120"> getLog().warn("commons.distSvnStagingUrl is not set, the commons-release-plugin will not run.");</span>
-<span class="fc" id="L121"> return;</span>
+<span class="fc bfc" id="L120" title="All 2 branches covered."> if (StringUtils.isEmpty(distSvnStagingUrl)) {</span>
+<span class="fc" id="L121"> getLog().warn("commons.distSvnStagingUrl is not set, the commons-release-plugin will not run.");</span>
+<span class="fc" id="L122"> return;</span>
}
-<span class="fc" id="L123"> getLog().info("Detaching Assemblies");</span>
-<span class="fc bfc" id="L124" title="All 2 branches covered."> for (final Object attachedArtifact : project.getAttachedArtifacts()) {</span>
-<span class="fc" id="L125"> putAttachedArtifactInSha512Map((Artifact) attachedArtifact);</span>
-<span class="fc bfc" id="L126" title="All 2 branches covered."> if (ARTIFACT_TYPES_TO_DETACH.contains(((Artifact) attachedArtifact).getType())) {</span>
-<span class="fc" id="L127"> detachedArtifacts.add((Artifact) attachedArtifact);</span>
+<span class="fc" id="L124"> getLog().info("Detaching Assemblies");</span>
+<span class="fc bfc" id="L125" title="All 2 branches covered."> for (final Object attachedArtifact : project.getAttachedArtifacts()) {</span>
+<span class="fc" id="L126"> putAttachedArtifactInSha512Map((Artifact) attachedArtifact);</span>
+<span class="fc bfc" id="L127" title="All 2 branches covered."> if (ARTIFACT_TYPES_TO_DETACH.contains(((Artifact) attachedArtifact).getType())) {</span>
+<span class="fc" id="L128"> detachedArtifacts.add((Artifact) attachedArtifact);</span>
}
-<span class="fc" id="L129"> }</span>
-<span class="pc bpc" id="L130" title="1 of 2 branches missed."> if (detachedArtifacts.isEmpty()) {</span>
-<span class="nc" id="L131"> getLog().info("Current project contains no distributions. Not executing.");</span>
-<span class="nc" id="L132"> return;</span>
+<span class="fc" id="L130"> }</span>
+<span class="pc bpc" id="L131" title="1 of 2 branches missed."> if (detachedArtifacts.isEmpty()) {</span>
+<span class="nc" id="L132"> getLog().info("Current project contains no distributions. Not executing.");</span>
+<span class="nc" id="L133"> return;</span>
}
-<span class="fc bfc" id="L134" title="All 2 branches covered."> for (final Artifact artifactToRemove : detachedArtifacts) {</span>
-<span class="fc" id="L135"> project.getAttachedArtifacts().remove(artifactToRemove);</span>
-<span class="fc" id="L136"> }</span>
-<span class="pc bpc" id="L137" title="1 of 2 branches missed."> if (!workingDirectory.exists()) {</span>
-<span class="fc" id="L138"> SharedFunctions.initDirectory(getLog(), workingDirectory);</span>
+ //
+ // PROBLEM CODE for Maven >= 3.8.3
+ // https://issues.apache.org/jira/browse/MNG-7316
+ try {
+ // (1) Try the normal way
+ // Maven 3.8.3 throws an exception here because MavenProject.getAttachedArtifacts()
+ // returns an IMMUTABLE collection.
+<span class="fc" id="L142"> project.getAttachedArtifacts().removeAll(detachedArtifacts);</span>
+<span class="nc" id="L143"> } catch (final UnsupportedOperationException e) {</span>
+ // (2) HACK workaround for https://issues.apache.org/jira/browse/MNG-7316
+<span class="nc" id="L145"> final ArrayList<Artifact> arrayList = new ArrayList<>(project.getAttachedArtifacts());</span>
+<span class="nc" id="L146"> arrayList.removeAll(detachedArtifacts);</span>
+ try {
+ // MavenProject#setAttachedArtifacts(List) is protected
+<span class="nc" id="L149"> MethodUtils.invokeMethod(project, true, "setAttachedArtifacts", arrayList);</span>
+<span class="nc" id="L150"> } catch (final ReflectiveOperationException roe) {</span>
+<span class="nc" id="L151"> throw new MojoExecutionException(roe);</span>
+<span class="nc" id="L152"> }</span>
+<span class="fc" id="L153"> }</span>
+<span class="pc bpc" id="L154" title="1 of 2 branches missed."> if (!workingDirectory.exists()) {</span>
+<span class="fc" id="L155"> SharedFunctions.initDirectory(getLog(), workingDirectory);</span>
}
-<span class="fc" id="L140"> writeAllArtifactsInSha512PropertiesFile();</span>
-<span class="fc" id="L141"> copyRemovedArtifactsToWorkingDirectory();</span>
-<span class="fc" id="L142"> getLog().info("");</span>
-<span class="fc" id="L143"> hashArtifacts();</span>
-<span class="fc" id="L144"> }</span>
+<span class="fc" id="L157"> writeAllArtifactsInSha512PropertiesFile();</span>
+<span class="fc" id="L158"> copyRemovedArtifactsToWorkingDirectory();</span>
+<span class="fc" id="L159"> getLog().info("");</span>
+<span class="fc" id="L160"> hashArtifacts();</span>
+<span class="fc" id="L161"> }</span>
/**
* Takes an attached artifact and puts the signature in the map.
@@ -151,23 +168,25 @@ import org.apache.maven.project.MavenPro
*/
private void putAttachedArtifactInSha512Map(final Artifact artifact) throws MojoExecutionException {
try {
-<span class="fc" id="L154"> final String artifactKey = getArtifactKey(artifact);</span>
-<span class="fc" id="L155"> try (FileInputStream fis = new FileInputStream(artifact.getFile())) {</span>
-<span class="fc" id="L156"> artifactSha512s.put(artifactKey, DigestUtils.sha512Hex(fis));</span>
+<span class="fc" id="L171"> final String artifactKey = getArtifactKey(artifact);</span>
+<span class="fc bfc" id="L172" title="All 2 branches covered."> if (!artifactKey.endsWith(".asc")) { // .asc files don't need hashes</span>
+<span class="fc" id="L173"> try (InputStream fis = Files.newInputStream(artifact.getFile().toPath())) {</span>
+<span class="fc" id="L174"> artifactSha512s.put(artifactKey, DigestUtils.sha512Hex(fis));</span>
+ }
}
-<span class="nc" id="L158"> } catch (final IOException e) {</span>
-<span class="nc" id="L159"> throw new MojoExecutionException(</span>
+<span class="nc" id="L177"> } catch (final IOException e) {</span>
+<span class="nc" id="L178"> throw new MojoExecutionException(</span>
"Could not find artifact signature for: "
-<span class="nc" id="L161"> + artifact.getArtifactId()</span>
+<span class="nc" id="L180"> + artifact.getArtifactId()</span>
+ "-"
-<span class="nc" id="L163"> + artifact.getClassifier()</span>
+<span class="nc" id="L182"> + artifact.getClassifier()</span>
+ "-"
-<span class="nc" id="L165"> + artifact.getVersion()</span>
+<span class="nc" id="L184"> + artifact.getVersion()</span>
+ " type: "
-<span class="nc" id="L167"> + artifact.getType(),</span>
+<span class="nc" id="L186"> + artifact.getType(),</span>
e);
-<span class="fc" id="L169"> }</span>
-<span class="fc" id="L170"> }</span>
+<span class="fc" id="L188"> }</span>
+<span class="fc" id="L189"> }</span>
/**
* Writes to ./target/commons-release-plugin/sha512.properties the artifact sha512's.
@@ -175,14 +194,14 @@ import org.apache.maven.project.MavenPro
* @throws MojoExecutionException if we can't write the file due to an {@link IOException}.
*/
private void writeAllArtifactsInSha512PropertiesFile() throws MojoExecutionException {
-<span class="fc" id="L178"> final File propertiesFile = new File(workingDirectory, "sha512.properties");</span>
-<span class="fc" id="L179"> getLog().info("Writting " + propertiesFile);</span>
-<span class="fc" id="L180"> try (FileOutputStream fileWriter = new FileOutputStream(propertiesFile)) {</span>
-<span class="fc" id="L181"> artifactSha512s.store(fileWriter, "Release SHA-512s");</span>
-<span class="nc" id="L182"> } catch (final IOException e) {</span>
-<span class="nc" id="L183"> throw new MojoExecutionException("Failure to write SHA-512's", e);</span>
-<span class="fc" id="L184"> }</span>
-<span class="fc" id="L185"> }</span>
+<span class="fc" id="L197"> final File propertiesFile = new File(workingDirectory, "sha512.properties");</span>
+<span class="fc" id="L198"> getLog().info("Writing " + propertiesFile);</span>
+<span class="fc" id="L199"> try (OutputStream fileWriter = Files.newOutputStream(propertiesFile.toPath())) {</span>
+<span class="fc" id="L200"> artifactSha512s.store(fileWriter, "Release SHA-512s");</span>
+<span class="nc" id="L201"> } catch (final IOException e) {</span>
+<span class="nc" id="L202"> throw new MojoExecutionException("Failure to write SHA-512's", e);</span>
+<span class="fc" id="L203"> }</span>
+<span class="fc" id="L204"> }</span>
/**
* A helper method to copy the newly detached artifacts to <code>target/commons-release-plugin</code>
@@ -192,19 +211,19 @@ import org.apache.maven.project.MavenPro
* properly wrapped so that Maven can handle it.
*/
private void copyRemovedArtifactsToWorkingDirectory() throws MojoExecutionException {
-<span class="fc" id="L195"> final String wdAbsolutePath = workingDirectory.getAbsolutePath();</span>
-<span class="fc" id="L196"> getLog().info(</span>
-<span class="fc" id="L197"> "Copying " + detachedArtifacts.size() + " detached artifacts to working directory " + wdAbsolutePath);</span>
-<span class="fc bfc" id="L198" title="All 2 branches covered."> for (final Artifact artifact: detachedArtifacts) {</span>
-<span class="fc" id="L199"> final File artifactFile = artifact.getFile();</span>
-<span class="fc" id="L200"> final StringBuilder copiedArtifactAbsolutePath = new StringBuilder(wdAbsolutePath);</span>
-<span class="fc" id="L201"> copiedArtifactAbsolutePath.append("/");</span>
-<span class="fc" id="L202"> copiedArtifactAbsolutePath.append(artifactFile.getName());</span>
-<span class="fc" id="L203"> final File copiedArtifact = new File(copiedArtifactAbsolutePath.toString());</span>
-<span class="fc" id="L204"> getLog().info("Copying: " + artifactFile.getName());</span>
-<span class="fc" id="L205"> SharedFunctions.copyFile(getLog(), artifactFile, copiedArtifact);</span>
-<span class="fc" id="L206"> }</span>
-<span class="fc" id="L207"> }</span>
+<span class="fc" id="L214"> final String wdAbsolutePath = workingDirectory.getAbsolutePath();</span>
+<span class="fc" id="L215"> getLog().info(</span>
+<span class="fc" id="L216"> "Copying " + detachedArtifacts.size() + " detached artifacts to working directory " + wdAbsolutePath);</span>
+<span class="fc bfc" id="L217" title="All 2 branches covered."> for (final Artifact artifact: detachedArtifacts) {</span>
+<span class="fc" id="L218"> final File artifactFile = artifact.getFile();</span>
+<span class="fc" id="L219"> final StringBuilder copiedArtifactAbsolutePath = new StringBuilder(wdAbsolutePath);</span>
+<span class="fc" id="L220"> copiedArtifactAbsolutePath.append("/");</span>
+<span class="fc" id="L221"> copiedArtifactAbsolutePath.append(artifactFile.getName());</span>
+<span class="fc" id="L222"> final File copiedArtifact = new File(copiedArtifactAbsolutePath.toString());</span>
+<span class="fc" id="L223"> getLog().info("Copying: " + artifactFile.getName());</span>
+<span class="fc" id="L224"> SharedFunctions.copyFile(getLog(), artifactFile, copiedArtifact);</span>
+<span class="fc" id="L225"> }</span>
+<span class="fc" id="L226"> }</span>
/**
* A helper method that creates sha512 signature files for our detached artifacts in the
@@ -215,24 +234,24 @@ import org.apache.maven.project.MavenPro
* properly wrapped so that Maven can handle it.
*/
private void hashArtifacts() throws MojoExecutionException {
-<span class="fc bfc" id="L218" title="All 2 branches covered."> for (final Artifact artifact : detachedArtifacts) {</span>
-<span class="fc bfc" id="L219" title="All 2 branches covered."> if (!artifact.getFile().getName().toLowerCase(Locale.ROOT).contains("asc")) {</span>
-<span class="fc" id="L220"> final String artifactKey = getArtifactKey(artifact);</span>
+<span class="fc bfc" id="L237" title="All 2 branches covered."> for (final Artifact artifact : detachedArtifacts) {</span>
+<span class="fc bfc" id="L238" title="All 2 branches covered."> if (!artifact.getFile().getName().toLowerCase(Locale.ROOT).contains("asc")) {</span>
+<span class="fc" id="L239"> final String artifactKey = getArtifactKey(artifact);</span>
try {
- String digest;
+ final String digest;
// SHA-512
-<span class="fc" id="L224"> digest = artifactSha512s.getProperty(artifactKey.toString());</span>
-<span class="fc" id="L225"> getLog().info(artifact.getFile().getName() + " sha512: " + digest);</span>
-<span class="fc" id="L226"> try (PrintWriter printWriter = new PrintWriter(</span>
-<span class="fc" id="L227"> getSha512FilePath(workingDirectory, artifact.getFile()))) {</span>
-<span class="fc" id="L228"> printWriter.println(digest);</span>
+<span class="fc" id="L243"> digest = artifactSha512s.getProperty(artifactKey.toString());</span>
+<span class="fc" id="L244"> getLog().info(artifact.getFile().getName() + " sha512: " + digest);</span>
+<span class="fc" id="L245"> try (PrintWriter printWriter = new PrintWriter(</span>
+<span class="fc" id="L246"> getSha512FilePath(workingDirectory, artifact.getFile()))) {</span>
+<span class="fc" id="L247"> printWriter.println(digest);</span>
}
-<span class="nc" id="L230"> } catch (final IOException e) {</span>
-<span class="nc" id="L231"> throw new MojoExecutionException("Could not sign file: " + artifact.getFile().getName(), e);</span>
-<span class="fc" id="L232"> }</span>
+<span class="nc" id="L249"> } catch (final IOException e) {</span>
+<span class="nc" id="L250"> throw new MojoExecutionException("Could not sign file: " + artifact.getFile().getName(), e);</span>
+<span class="fc" id="L251"> }</span>
}
-<span class="fc" id="L234"> }</span>
-<span class="fc" id="L235"> }</span>
+<span class="fc" id="L253"> }</span>
+<span class="fc" id="L254"> }</span>
/**
* A helper method to create a file path for the <code>sha512</code> signature file from a given file.
@@ -242,11 +261,11 @@ import org.apache.maven.project.MavenPro
* @return a {@link String} that is the absolute path to the <code>.sha512</code> file.
*/
private String getSha512FilePath(final File directory, final File file) {
-<span class="fc" id="L245"> final StringBuilder buffer = new StringBuilder(directory.getAbsolutePath());</span>
-<span class="fc" id="L246"> buffer.append("/");</span>
-<span class="fc" id="L247"> buffer.append(file.getName());</span>
-<span class="fc" id="L248"> buffer.append(".sha512");</span>
-<span class="fc" id="L249"> return buffer.toString();</span>
+<span class="fc" id="L264"> final StringBuilder buffer = new StringBuilder(directory.getAbsolutePath());</span>
+<span class="fc" id="L265"> buffer.append("/");</span>
+<span class="fc" id="L266"> buffer.append(file.getName());</span>
+<span class="fc" id="L267"> buffer.append(".sha512");</span>
+<span class="fc" id="L268"> return buffer.toString();</span>
}
/**
@@ -257,7 +276,7 @@ import org.apache.maven.project.MavenPro
* @return the generated key
*/
private String getArtifactKey(final Artifact artifact) {
-<span class="fc" id="L260"> return artifact.getFile().getName();</span>
+<span class="fc" id="L279"> return artifact.getFile().getName();</span>
}
}
-</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.3.201901230119</span></div></body></html>
\ No newline at end of file
+</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.7.202105040129</span></div></body></html>
\ No newline at end of file
Modified: websites/production/commons/content/proper/commons-release-plugin/jacoco/org.apache.commons.release.plugin.mojos/CommonsDistributionStagingMojo.html
==============================================================================
--- websites/production/commons/content/proper/commons-release-plugin/jacoco/org.apache.commons.release.plugin.mojos/CommonsDistributionStagingMojo.html (original)
+++ websites/production/commons/content/proper/commons-release-plugin/jacoco/org.apache.commons.release.plugin.mojos/CommonsDistributionStagingMojo.html Thu Mar 17 19:32:29 2022
@@ -1 +1 @@
-<?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>CommonsDistributionStagingMojo</title><script type="text/javascript" src="../jacoco-resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons Release Plugin</a> > <a href="index.html" class="el_package">org.apache.commons.release.plugin.mojos</a> > <span class="el_class">CommonsDistributionStagingMojo</span></div><h1>CommonsDistribution
StagingMojo</h1><table class="coverage" cellspacing="0" id="coveragetable"><thead><tr><td class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">250 of 801</td><td class="ctr2">68%</td><td class="bar">13 of
36</td><td class="ctr2">63%</td><td class="ctr1">11</td><td class="ctr2">27</td><td class="ctr1">38</td><td class="ctr2">144</td><td class="ctr1">0</td><td class="ctr2">9</td></tr></tfoot><tbody><tr><td id="a6"><a href="CommonsDistributionStagingMojo.java.html#L188" class="el_method">execute()</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="61" height="10" title="174" alt="174"/><img src="../jacoco-resources/greenbar.gif" width="58" height="10" title="165" alt="165"/></td><td class="ctr2" id="c8">48%</td><td class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="67" height="10" title="9" alt="9"/><img src="../jacoco-resources/greenbar.gif" width="52" height="10" title="7" alt="7"/></td><td class="ctr2" id="e3">43%</td><td class="ctr1" id="f0">7</td><td class="ctr2" id="g0">9</td><td class="ctr1" id="h0">23</td><td class="ctr2" id="i0">53</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a0"><a href="Com
monsDistributionStagingMojo.java.html#L412" class="el_method">buildReadmeAndHeaderHtmlFiles()</a></td><td class="bar" id="b1"><img src="../jacoco-resources/redbar.gif" width="14" height="10" title="42" alt="42"/><img src="../jacoco-resources/greenbar.gif" width="29" height="10" title="83" alt="83"/></td><td class="ctr2" id="c6">66%</td><td class="bar" id="d4"/><td class="ctr2" id="e4">n/a</td><td class="ctr1" id="f4">0</td><td class="ctr2" id="g4">1</td><td class="ctr1" id="h1">8</td><td class="ctr2" id="i1">26</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a2"><a href="CommonsDistributionStagingMojo.java.html#L340" class="el_method">copyDistributionsIntoScmDirectoryStructureAndAddToSvn(File, ScmProvider, ScmRepository)</a></td><td class="bar" id="b2"><img src="../jacoco-resources/redbar.gif" width="6" height="10" title="18" alt="18"/><img src="../jacoco-resources/greenbar.gif" width="42" height="10" title="121" alt="121"/></td><td class="ctr2" id
="c5">87%</td><td class="bar" id="d2"><img src="../jacoco-resources/redbar.gif" width="7" height="10" title="1" alt="1"/><img src="../jacoco-resources/greenbar.gif" width="52" height="10" title="7" alt="7"/></td><td class="ctr2" id="e0">87%</td><td class="ctr1" id="f2">1</td><td class="ctr2" id="g2">5</td><td class="ctr1" id="h3">3</td><td class="ctr2" id="i2">24</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a5"><a href="CommonsDistributionStagingMojo.java.html#L378" class="el_method">copySiteToScmDirectory()</a></td><td class="bar" id="b3"><img src="../jacoco-resources/redbar.gif" width="5" height="10" title="16" alt="16"/><img src="../jacoco-resources/greenbar.gif" width="8" height="10" title="24" alt="24"/></td><td class="ctr2" id="c7">60%</td><td class="bar" id="d3"><img src="../jacoco-resources/redbar.gif" width="7" height="10" title="1" alt="1"/><img src="../jacoco-resources/greenbar.gif" width="7" height="10" title="1" alt="1"/></td><td cl
ass="ctr2" id="e2">50%</td><td class="ctr1" id="f3">1</td><td class="ctr2" id="g3">2</td><td class="ctr1" id="h2">4</td><td class="ctr2" id="i4">9</td><td class="ctr1" id="j3">0</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a3"><a href="CommonsDistributionStagingMojo.java.html#L460" class="el_method">copyHeaderAndReadmeToSubdirectories(File, File)</a></td><td class="bar" id="b4"><img src="../jacoco-resources/greenbar.gif" width="28" height="10" title="80" alt="80"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d5"/><td class="ctr2" id="e5">n/a</td><td class="ctr1" id="f5">0</td><td class="ctr2" id="g5">1</td><td class="ctr1" id="h4">0</td><td class="ctr2" id="i3">16</td><td class="ctr1" id="j4">0</td><td class="ctr2" id="k4">1</td></tr><tr><td id="a7"><a href="CommonsDistributionStagingMojo.java.html#L275" class="el_method">listNotHiddenFilesAndDirectories(File, List)</a></td><td class="bar" id="b5"><img src="../jacoco-resources/greenbar.gif" width="15" height="10
" title="45" alt="45"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d1"><img src="../jacoco-resources/redbar.gif" width="15" height="10" title="2" alt="2"/><img src="../jacoco-resources/greenbar.gif" width="60" height="10" title="8" alt="8"/></td><td class="ctr2" id="e1">80%</td><td class="ctr1" id="f1">2</td><td class="ctr2" id="g1">6</td><td class="ctr1" id="h5">0</td><td class="ctr2" id="i5">8</td><td class="ctr1" id="j5">0</td><td class="ctr2" id="k5">1</td></tr><tr><td id="a4"><a href="CommonsDistributionStagingMojo.java.html#L298" class="el_method">copyReleaseNotesToWorkingDirectory()</a></td><td class="bar" id="b6"><img src="../jacoco-resources/greenbar.gif" width="9" height="10" title="26" alt="26"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d6"/><td class="ctr2" id="e6">n/a</td><td class="ctr1" id="f6">0</td><td class="ctr2" id="g6">1</td><td class="ctr1" id="h6">0</td><td class="ctr2" id="i6">5</td><td class="ctr1" id="j6">0</td><td class="ctr
2" id="k6">1</td></tr><tr><td id="a8"><a href="CommonsDistributionStagingMojo.java.html#L486" class="el_method">setBaseDir(File)</a></td><td class="bar" id="b7"><img src="../jacoco-resources/greenbar.gif" width="1" height="10" title="4" alt="4"/></td><td class="ctr2" id="c3">100%</td><td class="bar" id="d7"/><td class="ctr2" id="e7">n/a</td><td class="ctr1" id="f7">0</td><td class="ctr2" id="g7">1</td><td class="ctr1" id="h7">0</td><td class="ctr2" id="i7">2</td><td class="ctr1" id="j7">0</td><td class="ctr2" id="k7">1</td></tr><tr><td id="a1"><a href="CommonsDistributionStagingMojo.java.html#L68" class="el_method">CommonsDistributionStagingMojo()</a></td><td class="bar" id="b8"><img src="../jacoco-resources/greenbar.gif" width="1" height="10" title="3" alt="3"/></td><td class="ctr2" id="c4">100%</td><td class="bar" id="d8"/><td class="ctr2" id="e8">n/a</td><td class="ctr1" id="f8">0</td><td class="ctr2" id="g8">1</td><td class="ctr1" id="h8">0</td><td class="ctr2" id="i8">1</td><td
class="ctr1" id="j8">0</td><td class="ctr2" id="k8">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.3.201901230119</span></div></body></html>
\ No newline at end of file
+<?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>CommonsDistributionStagingMojo</title><script type="text/javascript" src="../jacoco-resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons Release Plugin</a> > <a href="index.html" class="el_package">org.apache.commons.release.plugin.mojos</a> > <span class="el_class">CommonsDistributionStagingMojo</span></div><h1>CommonsDistribution
StagingMojo</h1><table class="coverage" cellspacing="0" id="coveragetable"><thead><tr><td class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">268 of 852</td><td class="ctr2">68%</td><td class="bar">13 of
36</td><td class="ctr2">63%</td><td class="ctr1">11</td><td class="ctr2">28</td><td class="ctr1">40</td><td class="ctr2">152</td><td class="ctr1">0</td><td class="ctr2">10</td></tr></tfoot><tbody><tr><td id="a7"><a href="CommonsDistributionStagingMojo.java.html#L195" class="el_method">execute()</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="61" height="10" title="174" alt="174"/><img src="../jacoco-resources/greenbar.gif" width="58" height="10" title="165" alt="165"/></td><td class="ctr2" id="c9">48%</td><td class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="67" height="10" title="9" alt="9"/><img src="../jacoco-resources/greenbar.gif" width="52" height="10" title="7" alt="7"/></td><td class="ctr2" id="e3">43%</td><td class="ctr1" id="f0">7</td><td class="ctr2" id="g0">9</td><td class="ctr1" id="h0">23</td><td class="ctr2" id="i0">53</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a0"><a href="Co
mmonsDistributionStagingMojo.java.html#L439" class="el_method">buildReadmeAndHeaderHtmlFiles()</a></td><td class="bar" id="b1"><img src="../jacoco-resources/redbar.gif" width="14" height="10" title="42" alt="42"/><img src="../jacoco-resources/greenbar.gif" width="30" height="10" title="85" alt="85"/></td><td class="ctr2" id="c6">66%</td><td class="bar" id="d4"/><td class="ctr2" id="e4">n/a</td><td class="ctr1" id="f4">0</td><td class="ctr2" id="g4">1</td><td class="ctr1" id="h1">8</td><td class="ctr2" id="i1">26</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a2"><a href="CommonsDistributionStagingMojo.java.html#L347" class="el_method">copyDistributionsIntoScmDirectoryStructureAndAddToSvn(File, ScmProvider, ScmRepository)</a></td><td class="bar" id="b2"><img src="../jacoco-resources/redbar.gif" width="6" height="10" title="18" alt="18"/><img src="../jacoco-resources/greenbar.gif" width="44" height="10" title="126" alt="126"/></td><td class="ctr2" i
d="c5">87%</td><td class="bar" id="d2"><img src="../jacoco-resources/redbar.gif" width="7" height="10" title="1" alt="1"/><img src="../jacoco-resources/greenbar.gif" width="52" height="10" title="7" alt="7"/></td><td class="ctr2" id="e0">87%</td><td class="ctr1" id="f2">1</td><td class="ctr2" id="g2">5</td><td class="ctr1" id="h3">3</td><td class="ctr2" id="i2">25</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a5"><a href="CommonsDistributionStagingMojo.java.html#L386" class="el_method">copySignatureValidatorScriptToScmDirectory()</a></td><td class="bar" id="b3"><img src="../jacoco-resources/redbar.gif" width="6" height="10" title="18" alt="18"/><img src="../jacoco-resources/greenbar.gif" width="9" height="10" title="26" alt="26"/></td><td class="ctr2" id="c8">59%</td><td class="bar" id="d5"/><td class="ctr2" id="e5">n/a</td><td class="ctr1" id="f5">0</td><td class="ctr2" id="g5">1</td><td class="ctr1" id="h4">2</td><td class="ctr2" id="i6">7</td>
<td class="ctr1" id="j3">0</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a6"><a href="CommonsDistributionStagingMojo.java.html#L405" class="el_method">copySiteToScmDirectory()</a></td><td class="bar" id="b4"><img src="../jacoco-resources/redbar.gif" width="5" height="10" title="16" alt="16"/><img src="../jacoco-resources/greenbar.gif" width="8" height="10" title="24" alt="24"/></td><td class="ctr2" id="c7">60%</td><td class="bar" id="d3"><img src="../jacoco-resources/redbar.gif" width="7" height="10" title="1" alt="1"/><img src="../jacoco-resources/greenbar.gif" width="7" height="10" title="1" alt="1"/></td><td class="ctr2" id="e2">50%</td><td class="ctr1" id="f3">1</td><td class="ctr2" id="g3">2</td><td class="ctr1" id="h2">4</td><td class="ctr2" id="i4">9</td><td class="ctr1" id="j4">0</td><td class="ctr2" id="k4">1</td></tr><tr><td id="a3"><a href="CommonsDistributionStagingMojo.java.html#L492" class="el_method">copyHeaderAndReadmeToSubdirectories(File, File)</a></td><td cl
ass="bar" id="b5"><img src="../jacoco-resources/greenbar.gif" width="28" height="10" title="80" alt="80"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d6"/><td class="ctr2" id="e6">n/a</td><td class="ctr1" id="f6">0</td><td class="ctr2" id="g6">1</td><td class="ctr1" id="h5">0</td><td class="ctr2" id="i3">16</td><td class="ctr1" id="j5">0</td><td class="ctr2" id="k5">1</td></tr><tr><td id="a8"><a href="CommonsDistributionStagingMojo.java.html#L282" class="el_method">listNotHiddenFilesAndDirectories(File, List)</a></td><td class="bar" id="b6"><img src="../jacoco-resources/greenbar.gif" width="15" height="10" title="45" alt="45"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d1"><img src="../jacoco-resources/redbar.gif" width="15" height="10" title="2" alt="2"/><img src="../jacoco-resources/greenbar.gif" width="60" height="10" title="8" alt="8"/></td><td class="ctr2" id="e1">80%</td><td class="ctr1" id="f1">2</td><td class="ctr2" id="g1">6</td><td class="ctr
1" id="h6">0</td><td class="ctr2" id="i5">8</td><td class="ctr1" id="j6">0</td><td class="ctr2" id="k6">1</td></tr><tr><td id="a4"><a href="CommonsDistributionStagingMojo.java.html#L305" class="el_method">copyReleaseNotesToWorkingDirectory()</a></td><td class="bar" id="b7"><img src="../jacoco-resources/greenbar.gif" width="9" height="10" title="26" alt="26"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d7"/><td class="ctr2" id="e7">n/a</td><td class="ctr1" id="f7">0</td><td class="ctr2" id="g7">1</td><td class="ctr1" id="h7">0</td><td class="ctr2" id="i7">5</td><td class="ctr1" id="j7">0</td><td class="ctr2" id="k7">1</td></tr><tr><td id="a9"><a href="CommonsDistributionStagingMojo.java.html#L518" class="el_method">setBaseDir(File)</a></td><td class="bar" id="b8"><img src="../jacoco-resources/greenbar.gif" width="1" height="10" title="4" alt="4"/></td><td class="ctr2" id="c3">100%</td><td class="bar" id="d8"/><td class="ctr2" id="e8">n/a</td><td class="ctr1" id="f8">0<
/td><td class="ctr2" id="g8">1</td><td class="ctr1" id="h8">0</td><td class="ctr2" id="i8">2</td><td class="ctr1" id="j8">0</td><td class="ctr2" id="k8">1</td></tr><tr><td id="a1"><a href="CommonsDistributionStagingMojo.java.html#L72" class="el_method">CommonsDistributionStagingMojo()</a></td><td class="bar" id="b9"><img src="../jacoco-resources/greenbar.gif" width="1" height="10" title="3" alt="3"/></td><td class="ctr2" id="c4">100%</td><td class="bar" id="d9"/><td class="ctr2" id="e9">n/a</td><td class="ctr1" id="f9">0</td><td class="ctr2" id="g9">1</td><td class="ctr1" id="h9">0</td><td class="ctr2" id="i9">1</td><td class="ctr1" id="j9">0</td><td class="ctr2" id="k9">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.7.202105040129</span></div></body></html>
\ No newline at end of file