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 Tue Mar 12 12:37:46 2019 @@ -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 833</td><td class="ctr2">69%</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">38</td><td class="ctr2">149</td><td class="ctr1">0</td><td class="ctr2">10</td></tr></tfoot><tbody><tr><td id="a6"><a href="CommonsDistributionStagingMojo.java.html#L193" class="el_method">execute()</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="63" height="10" title="174" alt="174"/><img src="../jacoco-resources/greenbar.gif" width="56" height="10" title="156" alt="156"/></td><td class="ctr2" id="c9">47%</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">52</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#L409" class="el_method">buildReadmeAndHeaderHtmlFiles()</a></td><td class="bar" id="b1"><img src="../jacoco-resources/redbar.gif" width="15" height="10" title="42" alt="42"/><img src="../jacoco-resources/greenbar.gif" width="30" height="10" title="83" alt="83"/></td><td class="ctr2" id="c7">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#L337" 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="121" alt="121"/></td><td class="ctr2" i d="c6">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#L375" 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="c8">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 c lass="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#L457" class="el_method">copyHeaderAndReadmeToSubdirectories(File, File)</a></td><td class="bar" id="b4"><img src="../jacoco-resources/greenbar.gif" width="29" 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#L272" class="el_method">listNotHiddenFilesAndDirectories(File, List)</a></td><td class="bar" id="b5"><img src="../jacoco-resources/greenbar.gif" width="16" height="1 0" 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="a8"><a href="CommonsDistributionStagingMojo.java.html#L491" class="el_method">setAuthentication(ScmProviderRepository)</a></td><td class="bar" id="b6"><img src="../jacoco-resources/greenbar.gif" width="14" height="10" title="41" alt="41"/></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">6</td><td class="ctr1" id="j6">0</td><td clas s="ctr2" id="k6">1</td></tr><tr><td id="a4"><a href="CommonsDistributionStagingMojo.java.html#L295" 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="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">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#L483" 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="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">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#L73" 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="c5">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.2.201808211720</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">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">143</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">52</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#L411" 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#L339" 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#L377" 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#L459" 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#L274" 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#L297" 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#L485" 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.2.201808211720</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.java.html ============================================================================== --- websites/production/commons/content/proper/commons-release-plugin/jacoco/org.apache.commons.release.plugin.mojos/CommonsDistributionStagingMojo.java.html (original) +++ websites/production/commons/content/proper/commons-release-plugin/jacoco/org.apache.commons.release.plugin.mojos/CommonsDistributionStagingMojo.java.html Tue Mar 12 12:37:46 2019 @@ -38,15 +38,11 @@ import org.apache.maven.scm.command.chec import org.apache.maven.scm.manager.BasicScmManager; import org.apache.maven.scm.manager.ScmManager; import org.apache.maven.scm.provider.ScmProvider; -import org.apache.maven.scm.provider.ScmProviderRepository; import org.apache.maven.scm.provider.svn.repository.SvnScmProviderRepository; import org.apache.maven.scm.provider.svn.svnexe.SvnExeScmProvider; import org.apache.maven.scm.repository.ScmRepository; -import org.apache.maven.settings.Server; import org.apache.maven.settings.Settings; -import org.apache.maven.settings.crypto.DefaultSettingsDecryptionRequest; import org.apache.maven.settings.crypto.SettingsDecrypter; -import org.apache.maven.settings.crypto.SettingsDecryptionResult; import java.io.File; import java.io.FileOutputStream; @@ -56,7 +52,6 @@ import java.io.Writer; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.Optional; /** * This class checks out the dev distribution location, copies the distributions into that directory @@ -70,7 +65,7 @@ import java.util.Optional; defaultPhase = LifecyclePhase.DEPLOY, threadSafe = true, aggregator = true) -<span class="fc" id="L73">public class CommonsDistributionStagingMojo extends AbstractMojo {</span> +<span class="fc" id="L68">public class CommonsDistributionStagingMojo extends AbstractMojo {</span> /** The name of file generated from the README.vm velocity template to be checked into the dist svn repo. */ private static final String README_FILE_NAME = "README.html"; @@ -190,77 +185,84 @@ import java.util.Optional; @Override public void execute() throws MojoExecutionException, MojoFailureException { -<span class="fc bfc" id="L193" title="All 2 branches covered."> if (!isDistModule) {</span> -<span class="fc" id="L194"> getLog().info("This module is marked as a non distribution "</span> +<span class="fc bfc" id="L188" title="All 2 branches covered."> if (!isDistModule) {</span> +<span class="fc" id="L189"> getLog().info("This module is marked as a non distribution "</span> + "or assembly module, and the plugin will not run."); -<span class="fc" id="L196"> return;</span> +<span class="fc" id="L191"> return;</span> } -<span class="pc bpc" id="L198" title="1 of 2 branches missed."> if (StringUtils.isEmpty(distSvnStagingUrl)) {</span> -<span class="nc" id="L199"> getLog().warn("commons.distSvnStagingUrl is not set, the commons-release-plugin will not run.");</span> -<span class="nc" id="L200"> return;</span> +<span class="pc bpc" id="L193" title="1 of 2 branches missed."> if (StringUtils.isEmpty(distSvnStagingUrl)) {</span> +<span class="nc" id="L194"> getLog().warn("commons.distSvnStagingUrl is not set, the commons-release-plugin will not run.");</span> +<span class="nc" id="L195"> return;</span> } -<span class="pc bpc" id="L202" title="1 of 2 branches missed."> if (!workingDirectory.exists()) {</span> -<span class="nc" id="L203"> getLog().info("Current project contains no distributions. Not executing.");</span> -<span class="nc" id="L204"> return;</span> +<span class="pc bpc" id="L197" title="1 of 2 branches missed."> if (!workingDirectory.exists()) {</span> +<span class="nc" id="L198"> getLog().info("Current project contains no distributions. Not executing.");</span> +<span class="nc" id="L199"> return;</span> } -<span class="fc" id="L206"> getLog().info("Preparing to stage distributions");</span> +<span class="fc" id="L201"> getLog().info("Preparing to stage distributions");</span> try { -<span class="fc" id="L208"> ScmManager scmManager = new BasicScmManager();</span> -<span class="fc" id="L209"> scmManager.setScmProvider("svn", new SvnExeScmProvider());</span> -<span class="fc" id="L210"> ScmRepository repository = scmManager.makeScmRepository(distSvnStagingUrl);</span> -<span class="fc" id="L211"> ScmProvider provider = scmManager.getProviderByRepository(repository);</span> -<span class="fc" id="L212"> SvnScmProviderRepository providerRepository = (SvnScmProviderRepository) repository.getProviderRepository();</span> -<span class="fc" id="L213"> setAuthentication(providerRepository);</span> -<span class="fc" id="L214"> distVersionRcVersionDirectory =</span> +<span class="fc" id="L203"> ScmManager scmManager = new BasicScmManager();</span> +<span class="fc" id="L204"> scmManager.setScmProvider("svn", new SvnExeScmProvider());</span> +<span class="fc" id="L205"> ScmRepository repository = scmManager.makeScmRepository(distSvnStagingUrl);</span> +<span class="fc" id="L206"> ScmProvider provider = scmManager.getProviderByRepository(repository);</span> +<span class="fc" id="L207"> SvnScmProviderRepository providerRepository = (SvnScmProviderRepository) repository.getProviderRepository();</span> +<span class="fc" id="L208"> SharedFunctions.setAuthentication(</span> + providerRepository, + distServer, + settings, + settingsDecrypter, + username, + password + ); +<span class="fc" id="L216"> distVersionRcVersionDirectory =</span> new File(distCheckoutDirectory, commonsReleaseVersion + "-" + commonsRcVersion); -<span class="pc bpc" id="L216" title="1 of 2 branches missed."> if (!distCheckoutDirectory.exists()) {</span> -<span class="fc" id="L217"> SharedFunctions.initDirectory(getLog(), distCheckoutDirectory);</span> +<span class="pc bpc" id="L218" title="1 of 2 branches missed."> if (!distCheckoutDirectory.exists()) {</span> +<span class="fc" id="L219"> SharedFunctions.initDirectory(getLog(), distCheckoutDirectory);</span> } -<span class="fc" id="L219"> ScmFileSet scmFileSet = new ScmFileSet(distCheckoutDirectory);</span> -<span class="fc" id="L220"> getLog().info("Checking out dist from: " + distSvnStagingUrl);</span> -<span class="fc" id="L221"> final CheckOutScmResult checkOutResult = provider.checkOut(repository, scmFileSet);</span> -<span class="pc bpc" id="L222" title="1 of 2 branches missed."> if (!checkOutResult.isSuccess()) {</span> -<span class="nc" id="L223"> throw new MojoExecutionException("Failed to checkout files from SCM: "</span> -<span class="nc" id="L224"> + checkOutResult.getProviderMessage() + " [" + checkOutResult.getCommandOutput() + "]");</span> +<span class="fc" id="L221"> ScmFileSet scmFileSet = new ScmFileSet(distCheckoutDirectory);</span> +<span class="fc" id="L222"> getLog().info("Checking out dist from: " + distSvnStagingUrl);</span> +<span class="fc" id="L223"> final CheckOutScmResult checkOutResult = provider.checkOut(repository, scmFileSet);</span> +<span class="pc bpc" id="L224" title="1 of 2 branches missed."> if (!checkOutResult.isSuccess()) {</span> +<span class="nc" id="L225"> throw new MojoExecutionException("Failed to checkout files from SCM: "</span> +<span class="nc" id="L226"> + checkOutResult.getProviderMessage() + " [" + checkOutResult.getCommandOutput() + "]");</span> } -<span class="fc" id="L226"> File copiedReleaseNotes = copyReleaseNotesToWorkingDirectory();</span> -<span class="fc" id="L227"> copyDistributionsIntoScmDirectoryStructureAndAddToSvn(copiedReleaseNotes,</span> +<span class="fc" id="L228"> File copiedReleaseNotes = copyReleaseNotesToWorkingDirectory();</span> +<span class="fc" id="L229"> copyDistributionsIntoScmDirectoryStructureAndAddToSvn(copiedReleaseNotes,</span> provider, repository); -<span class="fc" id="L229"> List<File> filesToAdd = new ArrayList<>();</span> -<span class="fc" id="L230"> listNotHiddenFilesAndDirectories(distCheckoutDirectory, filesToAdd);</span> -<span class="pc bpc" id="L231" title="1 of 2 branches missed."> if (!dryRun) {</span> -<span class="nc" id="L232"> ScmFileSet fileSet = new ScmFileSet(distCheckoutDirectory, filesToAdd);</span> -<span class="nc" id="L233"> AddScmResult addResult = provider.add(</span> +<span class="fc" id="L231"> List<File> filesToAdd = new ArrayList<>();</span> +<span class="fc" id="L232"> listNotHiddenFilesAndDirectories(distCheckoutDirectory, filesToAdd);</span> +<span class="pc bpc" id="L233" title="1 of 2 branches missed."> if (!dryRun) {</span> +<span class="nc" id="L234"> ScmFileSet fileSet = new ScmFileSet(distCheckoutDirectory, filesToAdd);</span> +<span class="nc" id="L235"> AddScmResult addResult = provider.add(</span> repository, fileSet ); -<span class="nc bnc" id="L237" title="All 2 branches missed."> if (!addResult.isSuccess()) {</span> -<span class="nc" id="L238"> throw new MojoExecutionException("Failed to add files to SCM: " + addResult.getProviderMessage()</span> -<span class="nc" id="L239"> + " [" + addResult.getCommandOutput() + "]");</span> +<span class="nc bnc" id="L239" title="All 2 branches missed."> if (!addResult.isSuccess()) {</span> +<span class="nc" id="L240"> throw new MojoExecutionException("Failed to add files to SCM: " + addResult.getProviderMessage()</span> +<span class="nc" id="L241"> + " [" + addResult.getCommandOutput() + "]");</span> } -<span class="nc" id="L241"> getLog().info("Staging release: " + project.getArtifactId() + ", version: " + project.getVersion());</span> -<span class="nc" id="L242"> CheckInScmResult checkInResult = provider.checkIn(</span> +<span class="nc" id="L243"> getLog().info("Staging release: " + project.getArtifactId() + ", version: " + project.getVersion());</span> +<span class="nc" id="L244"> CheckInScmResult checkInResult = provider.checkIn(</span> repository, fileSet, -<span class="nc" id="L245"> "Staging release: " + project.getArtifactId() + ", version: " + project.getVersion()</span> +<span class="nc" id="L247"> "Staging release: " + project.getArtifactId() + ", version: " + project.getVersion()</span> ); -<span class="nc bnc" id="L247" title="All 2 branches missed."> if (!checkInResult.isSuccess()) {</span> -<span class="nc" id="L248"> getLog().error("Committing dist files failed: " + checkInResult.getCommandOutput());</span> -<span class="nc" id="L249"> throw new MojoExecutionException(</span> -<span class="nc" id="L250"> "Committing dist files failed: " + checkInResult.getCommandOutput()</span> +<span class="nc bnc" id="L249" title="All 2 branches missed."> if (!checkInResult.isSuccess()) {</span> +<span class="nc" id="L250"> getLog().error("Committing dist files failed: " + checkInResult.getCommandOutput());</span> +<span class="nc" id="L251"> throw new MojoExecutionException(</span> +<span class="nc" id="L252"> "Committing dist files failed: " + checkInResult.getCommandOutput()</span> ); } -<span class="nc" id="L253"> getLog().info("Committed revision " + checkInResult.getScmRevision());</span> -<span class="nc" id="L254"> } else {</span> -<span class="fc" id="L255"> getLog().info("[Dry run] Would have committed to: " + distSvnStagingUrl);</span> -<span class="fc" id="L256"> getLog().info(</span> -<span class="fc" id="L257"> "[Dry run] Staging release: " + project.getArtifactId() + ", version: " + project.getVersion());</span> +<span class="nc" id="L255"> getLog().info("Committed revision " + checkInResult.getScmRevision());</span> +<span class="nc" id="L256"> } else {</span> +<span class="fc" id="L257"> getLog().info("[Dry run] Would have committed to: " + distSvnStagingUrl);</span> +<span class="fc" id="L258"> getLog().info(</span> +<span class="fc" id="L259"> "[Dry run] Staging release: " + project.getArtifactId() + ", version: " + project.getVersion());</span> } -<span class="nc" id="L259"> } catch (ScmException e) {</span> -<span class="nc" id="L260"> getLog().error("Could not commit files to dist: " + distSvnStagingUrl, e);</span> -<span class="nc" id="L261"> throw new MojoExecutionException("Could not commit files to dist: " + distSvnStagingUrl, e);</span> -<span class="fc" id="L262"> }</span> -<span class="fc" id="L263"> }</span> +<span class="nc" id="L261"> } catch (ScmException e) {</span> +<span class="nc" id="L262"> getLog().error("Could not commit files to dist: " + distSvnStagingUrl, e);</span> +<span class="nc" id="L263"> throw new MojoExecutionException("Could not commit files to dist: " + distSvnStagingUrl, e);</span> +<span class="fc" id="L264"> }</span> +<span class="fc" id="L265"> }</span> /** * Lists all directories and files to a flat list. @@ -269,16 +271,16 @@ import java.util.Optional; */ private void listNotHiddenFilesAndDirectories(File directory, List<File> files) { // Get all the files and directories from a directory. -<span class="fc" id="L272"> File[] fList = directory.listFiles();</span> -<span class="fc bfc" id="L273" title="All 2 branches covered."> for (File file : fList) {</span> -<span class="pc bpc" id="L274" title="1 of 4 branches missed."> if (file.isFile() && !file.isHidden()) {</span> -<span class="fc" id="L275"> files.add(file);</span> -<span class="pc bpc" id="L276" title="1 of 4 branches missed."> } else if (file.isDirectory() && !file.isHidden()) {</span> +<span class="fc" id="L274"> File[] fList = directory.listFiles();</span> +<span class="fc bfc" id="L275" title="All 2 branches covered."> for (File file : fList) {</span> +<span class="pc bpc" id="L276" title="1 of 4 branches missed."> if (file.isFile() && !file.isHidden()) {</span> <span class="fc" id="L277"> files.add(file);</span> -<span class="fc" id="L278"> listNotHiddenFilesAndDirectories(file, files);</span> +<span class="pc bpc" id="L278" title="1 of 4 branches missed."> } else if (file.isDirectory() && !file.isHidden()) {</span> +<span class="fc" id="L279"> files.add(file);</span> +<span class="fc" id="L280"> listNotHiddenFilesAndDirectories(file, files);</span> } } -<span class="fc" id="L281"> }</span> +<span class="fc" id="L283"> }</span> /** * A utility method that takes the <code>RELEASE-NOTES.txt</code> file from the base directory of the @@ -292,11 +294,11 @@ import java.util.Optional; * can properly handle the exception. */ private File copyReleaseNotesToWorkingDirectory() throws MojoExecutionException { -<span class="fc" id="L295"> SharedFunctions.initDirectory(getLog(), distVersionRcVersionDirectory);</span> -<span class="fc" id="L296"> getLog().info("Copying RELEASE-NOTES.txt to working directory.");</span> -<span class="fc" id="L297"> File copiedReleaseNotes = new File(distVersionRcVersionDirectory, releaseNotesFile.getName());</span> -<span class="fc" id="L298"> SharedFunctions.copyFile(getLog(), releaseNotesFile, copiedReleaseNotes);</span> -<span class="fc" id="L299"> return copiedReleaseNotes;</span> +<span class="fc" id="L297"> SharedFunctions.initDirectory(getLog(), distVersionRcVersionDirectory);</span> +<span class="fc" id="L298"> getLog().info("Copying RELEASE-NOTES.txt to working directory.");</span> +<span class="fc" id="L299"> File copiedReleaseNotes = new File(distVersionRcVersionDirectory, releaseNotesFile.getName());</span> +<span class="fc" id="L300"> SharedFunctions.copyFile(getLog(), releaseNotesFile, copiedReleaseNotes);</span> +<span class="fc" id="L301"> return copiedReleaseNotes;</span> } /** @@ -334,34 +336,34 @@ import java.util.Optional; ScmProvider provider, ScmRepository repository) throws MojoExecutionException { -<span class="fc" id="L337"> List<File> workingDirectoryFiles = Arrays.asList(workingDirectory.listFiles());</span> -<span class="fc" id="L338"> List<File> filesForMavenScmFileSet = new ArrayList<>();</span> -<span class="fc" id="L339"> File scmBinariesRoot = new File(distVersionRcVersionDirectory, "binaries");</span> -<span class="fc" id="L340"> File scmSourceRoot = new File(distVersionRcVersionDirectory, "source");</span> -<span class="fc" id="L341"> SharedFunctions.initDirectory(getLog(), scmBinariesRoot);</span> -<span class="fc" id="L342"> SharedFunctions.initDirectory(getLog(), scmSourceRoot);</span> +<span class="fc" id="L339"> List<File> workingDirectoryFiles = Arrays.asList(workingDirectory.listFiles());</span> +<span class="fc" id="L340"> List<File> filesForMavenScmFileSet = new ArrayList<>();</span> +<span class="fc" id="L341"> File scmBinariesRoot = new File(distVersionRcVersionDirectory, "binaries");</span> +<span class="fc" id="L342"> File scmSourceRoot = new File(distVersionRcVersionDirectory, "source");</span> +<span class="fc" id="L343"> SharedFunctions.initDirectory(getLog(), scmBinariesRoot);</span> +<span class="fc" id="L344"> SharedFunctions.initDirectory(getLog(), scmSourceRoot);</span> File copy; -<span class="fc bfc" id="L344" title="All 2 branches covered."> for (File file : workingDirectoryFiles) {</span> -<span class="fc bfc" id="L345" title="All 2 branches covered."> if (file.getName().contains("src")) {</span> -<span class="fc" id="L346"> copy = new File(scmSourceRoot, file.getName());</span> -<span class="fc" id="L347"> SharedFunctions.copyFile(getLog(), file, copy);</span> -<span class="fc" id="L348"> filesForMavenScmFileSet.add(file);</span> -<span class="fc bfc" id="L349" title="All 2 branches covered."> } else if (file.getName().contains("bin")) {</span> -<span class="fc" id="L350"> copy = new File(scmBinariesRoot, file.getName());</span> -<span class="fc" id="L351"> SharedFunctions.copyFile(getLog(), file, copy);</span> -<span class="fc" id="L352"> filesForMavenScmFileSet.add(file);</span> -<span class="pc bpc" id="L353" title="1 of 2 branches missed."> } else if (StringUtils.containsAny(file.getName(), "scm", "sha256.properties", "sha512.properties")) {</span> -<span class="fc" id="L354"> getLog().debug("Not copying scm directory over to the scm directory because it is the scm directory.");</span> +<span class="fc bfc" id="L346" title="All 2 branches covered."> for (File file : workingDirectoryFiles) {</span> +<span class="fc bfc" id="L347" title="All 2 branches covered."> if (file.getName().contains("src")) {</span> +<span class="fc" id="L348"> copy = new File(scmSourceRoot, file.getName());</span> +<span class="fc" id="L349"> SharedFunctions.copyFile(getLog(), file, copy);</span> +<span class="fc" id="L350"> filesForMavenScmFileSet.add(file);</span> +<span class="fc bfc" id="L351" title="All 2 branches covered."> } else if (file.getName().contains("bin")) {</span> +<span class="fc" id="L352"> copy = new File(scmBinariesRoot, file.getName());</span> +<span class="fc" id="L353"> SharedFunctions.copyFile(getLog(), file, copy);</span> +<span class="fc" id="L354"> filesForMavenScmFileSet.add(file);</span> +<span class="pc bpc" id="L355" title="1 of 2 branches missed."> } else if (StringUtils.containsAny(file.getName(), "scm", "sha256.properties", "sha512.properties")) {</span> +<span class="fc" id="L356"> getLog().debug("Not copying scm directory over to the scm directory because it is the scm directory.");</span> //do nothing because we are copying into scm } else { -<span class="nc" id="L357"> copy = new File(distCheckoutDirectory.getAbsolutePath(), file.getName());</span> -<span class="nc" id="L358"> SharedFunctions.copyFile(getLog(), file, copy);</span> -<span class="nc" id="L359"> filesForMavenScmFileSet.add(file);</span> +<span class="nc" id="L359"> copy = new File(distCheckoutDirectory.getAbsolutePath(), file.getName());</span> +<span class="nc" id="L360"> SharedFunctions.copyFile(getLog(), file, copy);</span> +<span class="nc" id="L361"> filesForMavenScmFileSet.add(file);</span> } -<span class="fc" id="L361"> }</span> -<span class="fc" id="L362"> filesForMavenScmFileSet.addAll(buildReadmeAndHeaderHtmlFiles());</span> -<span class="fc" id="L363"> filesForMavenScmFileSet.addAll(copySiteToScmDirectory());</span> -<span class="fc" id="L364"> return filesForMavenScmFileSet;</span> +<span class="fc" id="L363"> }</span> +<span class="fc" id="L364"> filesForMavenScmFileSet.addAll(buildReadmeAndHeaderHtmlFiles());</span> +<span class="fc" id="L365"> filesForMavenScmFileSet.addAll(copySiteToScmDirectory());</span> +<span class="fc" id="L366"> return filesForMavenScmFileSet;</span> } /** @@ -372,19 +374,19 @@ import java.util.Optional; * @throws MojoExecutionException if the site copying fails for some reason. */ private List<File> copySiteToScmDirectory() throws MojoExecutionException { -<span class="pc bpc" id="L375" title="1 of 2 branches missed."> if (!siteDirectory.exists()) {</span> -<span class="nc" id="L376"> getLog().error("\"mvn site\" was not run before this goal, or a siteDirectory did not exist.");</span> -<span class="nc" id="L377"> throw new MojoExecutionException(</span> +<span class="pc bpc" id="L377" title="1 of 2 branches missed."> if (!siteDirectory.exists()) {</span> +<span class="nc" id="L378"> getLog().error("\"mvn site\" was not run before this goal, or a siteDirectory did not exist.");</span> +<span class="nc" id="L379"> throw new MojoExecutionException(</span> "\"mvn site\" was not run before this goal, or a siteDirectory did not exist." ); } -<span class="fc" id="L381"> File siteInScm = new File(distVersionRcVersionDirectory, "site");</span> +<span class="fc" id="L383"> File siteInScm = new File(distVersionRcVersionDirectory, "site");</span> try { -<span class="fc" id="L383"> FileUtils.copyDirectory(siteDirectory, siteInScm);</span> -<span class="nc" id="L384"> } catch (IOException e) {</span> -<span class="nc" id="L385"> throw new MojoExecutionException("Site copying failed", e);</span> -<span class="fc" id="L386"> }</span> -<span class="fc" id="L387"> return new ArrayList<>(FileUtils.listFiles(siteInScm, null, true));</span> +<span class="fc" id="L385"> FileUtils.copyDirectory(siteDirectory, siteInScm);</span> +<span class="nc" id="L386"> } catch (IOException e) {</span> +<span class="nc" id="L387"> throw new MojoExecutionException("Site copying failed", e);</span> +<span class="fc" id="L388"> }</span> +<span class="fc" id="L389"> return new ArrayList<>(FileUtils.listFiles(siteInScm, null, true));</span> } /** @@ -406,40 +408,40 @@ import java.util.Optional; * files fails. */ private List<File> buildReadmeAndHeaderHtmlFiles() throws MojoExecutionException { -<span class="fc" id="L409"> List<File> headerAndReadmeFiles = new ArrayList<>();</span> -<span class="fc" id="L410"> File headerFile = new File(distVersionRcVersionDirectory, HEADER_FILE_NAME);</span> +<span class="fc" id="L411"> List<File> headerAndReadmeFiles = new ArrayList<>();</span> +<span class="fc" id="L412"> File headerFile = new File(distVersionRcVersionDirectory, HEADER_FILE_NAME);</span> // // HEADER file // -<span class="fc" id="L414"> try (Writer headerWriter = new OutputStreamWriter(new FileOutputStream(headerFile), "UTF-8")) {</span> -<span class="fc" id="L415"> HeaderHtmlVelocityDelegate.builder().build().render(headerWriter);</span> -<span class="nc" id="L416"> } catch (IOException e) {</span> -<span class="nc" id="L417"> final String message = "Could not build HEADER html file " + headerFile;</span> -<span class="nc" id="L418"> getLog().error(message, e);</span> -<span class="nc" id="L419"> throw new MojoExecutionException(message, e);</span> -<span class="fc" id="L420"> }</span> -<span class="fc" id="L421"> headerAndReadmeFiles.add(headerFile);</span> +<span class="fc" id="L416"> try (Writer headerWriter = new OutputStreamWriter(new FileOutputStream(headerFile), "UTF-8")) {</span> +<span class="fc" id="L417"> HeaderHtmlVelocityDelegate.builder().build().render(headerWriter);</span> +<span class="nc" id="L418"> } catch (IOException e) {</span> +<span class="nc" id="L419"> final String message = "Could not build HEADER html file " + headerFile;</span> +<span class="nc" id="L420"> getLog().error(message, e);</span> +<span class="nc" id="L421"> throw new MojoExecutionException(message, e);</span> +<span class="fc" id="L422"> }</span> +<span class="fc" id="L423"> headerAndReadmeFiles.add(headerFile);</span> // // README file // -<span class="fc" id="L425"> File readmeFile = new File(distVersionRcVersionDirectory, README_FILE_NAME);</span> -<span class="fc" id="L426"> try (Writer readmeWriter = new OutputStreamWriter(new FileOutputStream(readmeFile), "UTF-8")) {</span> +<span class="fc" id="L427"> File readmeFile = new File(distVersionRcVersionDirectory, README_FILE_NAME);</span> +<span class="fc" id="L428"> try (Writer readmeWriter = new OutputStreamWriter(new FileOutputStream(readmeFile), "UTF-8")) {</span> // @formatter:off -<span class="fc" id="L428"> ReadmeHtmlVelocityDelegate readmeHtmlVelocityDelegate = ReadmeHtmlVelocityDelegate.builder()</span> -<span class="fc" id="L429"> .withArtifactId(project.getArtifactId())</span> -<span class="fc" id="L430"> .withVersion(project.getVersion())</span> -<span class="fc" id="L431"> .withSiteUrl(project.getUrl())</span> -<span class="fc" id="L432"> .build();</span> +<span class="fc" id="L430"> ReadmeHtmlVelocityDelegate readmeHtmlVelocityDelegate = ReadmeHtmlVelocityDelegate.builder()</span> +<span class="fc" id="L431"> .withArtifactId(project.getArtifactId())</span> +<span class="fc" id="L432"> .withVersion(project.getVersion())</span> +<span class="fc" id="L433"> .withSiteUrl(project.getUrl())</span> +<span class="fc" id="L434"> .build();</span> // @formatter:on -<span class="fc" id="L434"> readmeHtmlVelocityDelegate.render(readmeWriter);</span> -<span class="nc" id="L435"> } catch (IOException e) {</span> -<span class="nc" id="L436"> final String message = "Could not build README html file " + readmeFile;</span> -<span class="nc" id="L437"> getLog().error(message, e);</span> -<span class="nc" id="L438"> throw new MojoExecutionException(message, e);</span> -<span class="fc" id="L439"> }</span> -<span class="fc" id="L440"> headerAndReadmeFiles.add(readmeFile);</span> -<span class="fc" id="L441"> headerAndReadmeFiles.addAll(copyHeaderAndReadmeToSubdirectories(headerFile, readmeFile));</span> -<span class="fc" id="L442"> return headerAndReadmeFiles;</span> +<span class="fc" id="L436"> readmeHtmlVelocityDelegate.render(readmeWriter);</span> +<span class="nc" id="L437"> } catch (IOException e) {</span> +<span class="nc" id="L438"> final String message = "Could not build README html file " + readmeFile;</span> +<span class="nc" id="L439"> getLog().error(message, e);</span> +<span class="nc" id="L440"> throw new MojoExecutionException(message, e);</span> +<span class="fc" id="L441"> }</span> +<span class="fc" id="L442"> headerAndReadmeFiles.add(readmeFile);</span> +<span class="fc" id="L443"> headerAndReadmeFiles.addAll(copyHeaderAndReadmeToSubdirectories(headerFile, readmeFile));</span> +<span class="fc" id="L444"> return headerAndReadmeFiles;</span> } /** @@ -454,22 +456,22 @@ import java.util.Optional; */ private List<File> copyHeaderAndReadmeToSubdirectories(File headerFile, File readmeFile) throws MojoExecutionException { -<span class="fc" id="L457"> List<File> symbolicLinkFiles = new ArrayList<>();</span> -<span class="fc" id="L458"> File sourceRoot = new File(distVersionRcVersionDirectory, "source");</span> -<span class="fc" id="L459"> File binariesRoot = new File(distVersionRcVersionDirectory, "binaries");</span> -<span class="fc" id="L460"> File sourceHeaderFile = new File(sourceRoot, HEADER_FILE_NAME);</span> -<span class="fc" id="L461"> File sourceReadmeFile = new File(sourceRoot, README_FILE_NAME);</span> -<span class="fc" id="L462"> File binariesHeaderFile = new File(binariesRoot, HEADER_FILE_NAME);</span> -<span class="fc" id="L463"> File binariesReadmeFile = new File(binariesRoot, README_FILE_NAME);</span> -<span class="fc" id="L464"> SharedFunctions.copyFile(getLog(), headerFile, sourceHeaderFile);</span> -<span class="fc" id="L465"> symbolicLinkFiles.add(sourceHeaderFile);</span> -<span class="fc" id="L466"> SharedFunctions.copyFile(getLog(), readmeFile, sourceReadmeFile);</span> -<span class="fc" id="L467"> symbolicLinkFiles.add(sourceReadmeFile);</span> -<span class="fc" id="L468"> SharedFunctions.copyFile(getLog(), headerFile, binariesHeaderFile);</span> -<span class="fc" id="L469"> symbolicLinkFiles.add(binariesHeaderFile);</span> -<span class="fc" id="L470"> SharedFunctions.copyFile(getLog(), readmeFile, binariesReadmeFile);</span> -<span class="fc" id="L471"> symbolicLinkFiles.add(binariesReadmeFile);</span> -<span class="fc" id="L472"> return symbolicLinkFiles;</span> +<span class="fc" id="L459"> List<File> symbolicLinkFiles = new ArrayList<>();</span> +<span class="fc" id="L460"> File sourceRoot = new File(distVersionRcVersionDirectory, "source");</span> +<span class="fc" id="L461"> File binariesRoot = new File(distVersionRcVersionDirectory, "binaries");</span> +<span class="fc" id="L462"> File sourceHeaderFile = new File(sourceRoot, HEADER_FILE_NAME);</span> +<span class="fc" id="L463"> File sourceReadmeFile = new File(sourceRoot, README_FILE_NAME);</span> +<span class="fc" id="L464"> File binariesHeaderFile = new File(binariesRoot, HEADER_FILE_NAME);</span> +<span class="fc" id="L465"> File binariesReadmeFile = new File(binariesRoot, README_FILE_NAME);</span> +<span class="fc" id="L466"> SharedFunctions.copyFile(getLog(), headerFile, sourceHeaderFile);</span> +<span class="fc" id="L467"> symbolicLinkFiles.add(sourceHeaderFile);</span> +<span class="fc" id="L468"> SharedFunctions.copyFile(getLog(), readmeFile, sourceReadmeFile);</span> +<span class="fc" id="L469"> symbolicLinkFiles.add(sourceReadmeFile);</span> +<span class="fc" id="L470"> SharedFunctions.copyFile(getLog(), headerFile, binariesHeaderFile);</span> +<span class="fc" id="L471"> symbolicLinkFiles.add(binariesHeaderFile);</span> +<span class="fc" id="L472"> SharedFunctions.copyFile(getLog(), readmeFile, binariesReadmeFile);</span> +<span class="fc" id="L473"> symbolicLinkFiles.add(binariesReadmeFile);</span> +<span class="fc" id="L474"> return symbolicLinkFiles;</span> } /** @@ -480,20 +482,7 @@ import java.util.Optional; * is invoked. */ protected void setBaseDir(File baseDir) { -<span class="fc" id="L483"> this.baseDir = baseDir;</span> -<span class="fc" id="L484"> }</span> - - /** - * Set authentication information on the specified {@link ScmProviderRepository}. - * @param providerRepository target - */ - private void setAuthentication(ScmProviderRepository providerRepository) { -<span class="fc" id="L491"> Optional<Server> server =</span> -<span class="fc" id="L492"> Optional.ofNullable(distServer).map(settings::getServer).map(DefaultSettingsDecryptionRequest::new)</span> -<span class="fc" id="L493"> .map(settingsDecrypter::decrypt).map(SettingsDecryptionResult::getServer);</span> - -<span class="fc" id="L495"> providerRepository.setUser(server.map(Server::getUsername).orElse(username));</span> -<span class="fc" id="L496"> providerRepository.setPassword(server.map(Server::getPassword).orElse(password));</span> -<span class="fc" id="L497"> }</span> +<span class="fc" id="L485"> this.baseDir = baseDir;</span> +<span class="fc" id="L486"> }</span> } </pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.2.201808211720</span></div></body></html> \ No newline at end of file Added: websites/production/commons/content/proper/commons-release-plugin/jacoco/org.apache.commons.release.plugin.mojos/CommonsStagingCleanupMojo.html ============================================================================== --- websites/production/commons/content/proper/commons-release-plugin/jacoco/org.apache.commons.release.plugin.mojos/CommonsStagingCleanupMojo.html (added) +++ websites/production/commons/content/proper/commons-release-plugin/jacoco/org.apache.commons.release.plugin.mojos/CommonsStagingCleanupMojo.html Tue Mar 12 12:37:46 2019 @@ -0,0 +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>CommonsStagingCleanupMojo</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">CommonsStagingCleanupMojo</span></div><h1>CommonsStagingCleanupMojo</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">135 of 238</td><td class="ctr2">43%</td><td class="bar">10 of >16</td><td cla ss="ctr2">37%</td><td class="ctr1">8</td><td class="ctr2">10</td><td class="ctr1">24</td><td class="ctr2">44</td><td class="ctr1">0</td><td class="ctr2">2</td></tr></tfoot><tbody><tr><td id="a1"><a href="CommonsStagingCleanupMojo.java.html#L137" class="el_method">execute()</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="68" height="10" title="135" alt="135"/><img src="../jacoco-resources/greenbar.gif" width="51" height="10" title="100" alt="100"/></td><td class="ctr2" id="c1">42%</td><td class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="75" height="10" title="10" alt="10"/><img src="../jacoco-resources/greenbar.gif" width="45" height="10" title="6" alt="6"/></td><td class="ctr2" id="e0">37%</td><td class="ctr1" id="f0">8</td><td class="ctr2" id="g0">9</td><td class="ctr1" id="h0">24</td><td class="ctr2" id="i0">43</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a0"><a href="CommonsStagingCleanupMo jo.java.html#L58" class="el_method">CommonsStagingCleanupMojo()</a></td><td class="bar" id="b1"><img src="../jacoco-resources/greenbar.gif" width="1" height="10" title="3" alt="3"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d1"/><td class="ctr2" id="e1">n/a</td><td class="ctr1" id="f1">0</td><td class="ctr2" id="g1">1</td><td class="ctr1" id="h1">0</td><td class="ctr2" id="i1">1</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k1">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.2.201808211720</span></div></body></html> \ No newline at end of file Added: websites/production/commons/content/proper/commons-release-plugin/jacoco/org.apache.commons.release.plugin.mojos/CommonsStagingCleanupMojo.java.html ============================================================================== --- websites/production/commons/content/proper/commons-release-plugin/jacoco/org.apache.commons.release.plugin.mojos/CommonsStagingCleanupMojo.java.html (added) +++ websites/production/commons/content/proper/commons-release-plugin/jacoco/org.apache.commons.release.plugin.mojos/CommonsStagingCleanupMojo.java.html Tue Mar 12 12:37:46 2019 @@ -0,0 +1,202 @@ +<?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>CommonsStagingCleanupMojo.java</title><link rel="stylesheet" href="../jacoco-resources/prettify.css" type="text/css"/><script type="text/javascript" src="../jacoco-resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><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.source.html" class="el_package">org.apache.commons.release.plugin.mo jos</a> > <span class="el_source">CommonsStagingCleanupMojo.java</span></div><h1>CommonsStagingCleanupMojo.java</h1><pre class="source lang-java linenums">/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.commons.release.plugin.mojos; + +import org.apache.commons.lang3.StringUtils; +import org.apache.commons.release.plugin.SharedFunctions; +import org.apache.maven.plugin.AbstractMojo; +import org.apache.maven.plugin.MojoExecutionException; +import org.apache.maven.plugin.MojoFailureException; +import org.apache.maven.plugins.annotations.Component; +import org.apache.maven.plugins.annotations.LifecyclePhase; +import org.apache.maven.plugins.annotations.Mojo; +import org.apache.maven.plugins.annotations.Parameter; +import org.apache.maven.project.MavenProject; +import org.apache.maven.scm.ScmException; +import org.apache.maven.scm.ScmFileSet; +import org.apache.maven.scm.command.checkin.CheckInScmResult; +import org.apache.maven.scm.command.checkout.CheckOutScmResult; +import org.apache.maven.scm.command.remove.RemoveScmResult; +import org.apache.maven.scm.manager.BasicScmManager; +import org.apache.maven.scm.manager.ScmManager; +import org.apache.maven.scm.provider.ScmProvider; +import org.apache.maven.scm.provider.svn.repository.SvnScmProviderRepository; +import org.apache.maven.scm.provider.svn.svnexe.SvnExeScmProvider; +import org.apache.maven.scm.repository.ScmRepository; +import org.apache.maven.settings.Settings; +import org.apache.maven.settings.crypto.SettingsDecrypter; + +import java.io.File; +import java.util.Arrays; +import java.util.List; + +/** + * This class checks out the dev distribution location, checkes whether anything exists in the + * distribution location, and if it is non-empty it deletes all of the resources there. + * + * @author chtompki + * @since 1.6 + */ +@Mojo(name = "clean-staging", + defaultPhase = LifecyclePhase.POST_CLEAN, + threadSafe = true, + aggregator = true) +<span class="fc" id="L58">public class CommonsStagingCleanupMojo extends AbstractMojo {</span> + + /** + * The {@link MavenProject} object is essentially the context of the maven build at + * a given time. + */ + @Parameter(defaultValue = "${project}", required = true) + private MavenProject project; + + /** + * The main working directory for the plugin, namely <code>target/commons-release-plugin</code>, but + * that assumes that we're using the default maven <code>${project.build.directory}</code>. + */ + @Parameter(defaultValue = "${project.build.directory}/commons-release-plugin", property = "commons.outputDirectory") + private File workingDirectory; + + /** + * The location to which to checkout the dist subversion repository under our working directory, which + * was given above. We then do an SVN delete on all of the directories in this repository. + */ + @Parameter(defaultValue = "${project.build.directory}/commons-release-plugin/scm-cleanup", + property = "commons.distCleanupDirectory") + private File distCleanupDirectory; + + /** + * A boolean that determines whether or not we actually commit the files up to the subversion repository. + * If this is set to <code>true</code>, we do all but make the commits. We do checkout the repository in question + * though. + */ + @Parameter(property = "commons.release.dryRun", defaultValue = "false") + private Boolean dryRun; + + /** + * The url of the subversion repository to which we wish the artifacts to be staged. Typically this would need to + * be of the form: <code>scm:svn:https://dist.apache.org/repos/dist/dev/commons/foo/version-RC#</code>. Note. that + * the prefix to the substring <code>https</code> is a requirement. + */ + @Parameter(defaultValue = "", property = "commons.distSvnStagingUrl") + private String distSvnStagingUrl; + + /** + * A parameter to generally avoid running unless it is specifically turned on by the consuming module. + */ + @Parameter(defaultValue = "false", property = "commons.release.isDistModule") + private Boolean isDistModule; + + /** + * The ID of the server (specified in settings.xml) which should be used for dist authentication. + * This will be used in preference to {@link #username}/{@link #password}. + */ + @Parameter(property = "commons.distServer") + private String distServer; + + /** + * The username for the distribution subversion repository. This is typically your Apache id. + */ + @Parameter(property = "user.name") + private String username; + + /** + * The password associated with {@link CommonsDistributionStagingMojo#username}. + */ + @Parameter(property = "user.password") + private String password; + + /** + * Maven {@link Settings}. + */ + @Parameter(defaultValue = "${settings}", readonly = true, required = true) + private Settings settings; + + /** + * Maven {@link SettingsDecrypter} component. + */ + @Component + private SettingsDecrypter settingsDecrypter; + + @Override + public void execute() throws MojoExecutionException, MojoFailureException { +<span class="pc bpc" id="L137" title="1 of 2 branches missed."> if (!isDistModule) {</span> +<span class="nc" id="L138"> getLog().info("This module is marked as a non distribution "</span> + + "or assembly module, and the plugin will not run."); +<span class="nc" id="L140"> return;</span> + } +<span class="pc bpc" id="L142" title="1 of 2 branches missed."> if (StringUtils.isEmpty(distSvnStagingUrl)) {</span> +<span class="nc" id="L143"> getLog().warn("commons.distSvnStagingUrl is not set, the commons-release-plugin will not run.");</span> +<span class="nc" id="L144"> return;</span> + } +<span class="pc bpc" id="L146" title="1 of 2 branches missed."> if (!workingDirectory.exists()) {</span> +<span class="nc" id="L147"> SharedFunctions.initDirectory(getLog(), workingDirectory);</span> + } + try { +<span class="fc" id="L150"> ScmManager scmManager = new BasicScmManager();</span> +<span class="fc" id="L151"> scmManager.setScmProvider("svn", new SvnExeScmProvider());</span> +<span class="fc" id="L152"> ScmRepository repository = scmManager.makeScmRepository(distSvnStagingUrl);</span> +<span class="fc" id="L153"> ScmProvider provider = scmManager.getProviderByRepository(repository);</span> +<span class="fc" id="L154"> SvnScmProviderRepository providerRepository = (SvnScmProviderRepository) repository.getProviderRepository();</span> +<span class="fc" id="L155"> SharedFunctions.setAuthentication(</span> + providerRepository, + distServer, + settings, + settingsDecrypter, + username, + password + ); +<span class="fc" id="L163"> getLog().info("Checking out dist from: " + distSvnStagingUrl);</span> +<span class="fc" id="L164"> ScmFileSet scmFileSet = new ScmFileSet(distCleanupDirectory);</span> +<span class="fc" id="L165"> final CheckOutScmResult checkOutResult = provider.checkOut(repository, scmFileSet);</span> +<span class="pc bpc" id="L166" title="1 of 2 branches missed."> if (!checkOutResult.isSuccess()) {</span> +<span class="nc" id="L167"> throw new MojoExecutionException("Failed to checkout files from SCM: "</span> +<span class="nc" id="L168"> + checkOutResult.getProviderMessage() + " [" + checkOutResult.getCommandOutput() + "]");</span> + } +<span class="fc" id="L170"> List<File> filesToRemove = Arrays.asList(distCleanupDirectory.listFiles());</span> +<span class="pc bpc" id="L171" title="1 of 2 branches missed."> if (filesToRemove.size() == 1) {</span> +<span class="nc" id="L172"> getLog().info("No files to delete");</span> +<span class="nc" id="L173"> return;</span> + } +<span class="pc bpc" id="L175" title="1 of 2 branches missed."> if (!dryRun) {</span> +<span class="nc" id="L176"> ScmFileSet fileSet = new ScmFileSet(distCleanupDirectory, filesToRemove);</span> +<span class="nc" id="L177"> RemoveScmResult removeScmResult = provider.remove(repository, fileSet, "Cleaning up staging area");</span> +<span class="nc bnc" id="L178" title="All 2 branches missed."> if (!removeScmResult.isSuccess()) {</span> +<span class="nc" id="L179"> throw new MojoFailureException("Failed to remove files from SCM: "</span> +<span class="nc" id="L180"> + removeScmResult.getProviderMessage()</span> +<span class="nc" id="L181"> + " [" + removeScmResult.getCommandOutput() + "]");</span> + } +<span class="nc" id="L183"> getLog().info("Cleaning distribution area for: " + project.getArtifactId());</span> +<span class="nc" id="L184"> CheckInScmResult checkInResult = provider.checkIn(</span> + repository, + fileSet, +<span class="nc" id="L187"> "Cleaning distribution area for: " + project.getArtifactId()</span> + ); +<span class="nc bnc" id="L189" title="All 2 branches missed."> if (!checkInResult.isSuccess()) {</span> +<span class="nc" id="L190"> throw new MojoFailureException("Failed to commit files: " + removeScmResult.getProviderMessage()</span> +<span class="nc" id="L191"> + " [" + removeScmResult.getCommandOutput() + "]");</span> + } +<span class="nc" id="L193"> } else {</span> +<span class="fc" id="L194"> getLog().info("Would have attempted to delete files from: " + distSvnStagingUrl);</span> + } +<span class="nc" id="L196"> } catch (ScmException e) {</span> +<span class="nc" id="L197"> throw new MojoFailureException(e.getMessage());</span> +<span class="fc" id="L198"> }</span> + +<span class="fc" id="L200"> }</span> +} +</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.2.201808211720</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/index.html ============================================================================== --- websites/production/commons/content/proper/commons-release-plugin/jacoco/org.apache.commons.release.plugin.mojos/index.html (original) +++ websites/production/commons/content/proper/commons-release-plugin/jacoco/org.apache.commons.release.plugin.mojos/index.html Tue Mar 12 12:37:46 2019 @@ -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>org.apache.commons.release.plugin.mojos</title><script type="text/javascript" src="../jacoco-resources/sort.js"></script></head><body onload="initialSort(['breadcrumb', 'coveragetable'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="index.source.html" class="el_source">Source Files</a><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons Release Plugin</a> > <span class="el_package">org.apache.commons.release.plugin.mojos</span></div><h1>org.apach e.commons.release.plugin.mojos</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><td class="sortable ctr1" id="l" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="m" onclick="toggleSort(this)">Classes</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">362 of 1,460</td><td class="ctr2">75%</td><td class="bar">21 of 74</td><td class="ctr2">71%</td><td class="ctr1">19</td><td class="ctr2">61</td><td class="ctr1">62</td><td class="ctr2">283</td><td class="ctr1">0</td><td class="ctr2">24</td><td class="ctr1">0</td><td class="ctr2">3</td></tr></tfoot><tbody><tr><td id="a1"><a href="CommonsDistributionStagingMojo.html" class="el_class">CommonsDistributionStagingMojo</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="36" height="10" title="250" alt="250"/><img src="../jacoco-resources/greenbar.gif" width="83" height="10" title="583" alt="583"/></td><td class="ctr2" id="c2">69%</td><td class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="43" height="10" title="13" alt="13"/><img src="../jacoco-resources/greenbar.gif" width="76" height="10" title="23" alt="23"/></td><td class="ctr2" id="e2">63%< /td><td class="ctr1" id="f0">11</td><td class="ctr2" id="g0">28</td><td class="ctr1" id="h0">38</td><td class="ctr2" id="i0">149</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k0">10</td><td class="ctr1" id="l0">0</td><td class="ctr2" id="m0">1</td></tr><tr><td id="a0"><a href="CommonsDistributionDetachmentMojo.html" class="el_class">CommonsDistributionDetachmentMojo</a></td><td class="bar" id="b1"><img src="../jacoco-resources/redbar.gif" width="10" height="10" title="70" alt="70"/><img src="../jacoco-resources/greenbar.gif" width="51" height="10" title="360" alt="360"/></td><td class="ctr2" id="c0">83%</td><td class="bar" id="d1"><img src="../jacoco-resources/redbar.gif" width="13" height="10" title="4" alt="4"/><img src="../jacoco-resources/greenbar.gif" width="60" height="10" title="18" alt="18"/></td><td class="ctr2" id="e0">81%</td><td class="ctr1" id="f1">4</td><td class="ctr2" id="g1">20</td><td class="ctr1" id="h1">15</td><td class="ctr2" id="i1">92</td><td class=" ctr1" id="j1">0</td><td class="ctr2" id="k1">9</td><td class="ctr1" id="l1">0</td><td class="ctr2" id="m1">1</td></tr><tr><td id="a2"><a href="CommonsSiteCompressionMojo.html" class="el_class">CommonsSiteCompressionMojo</a></td><td class="bar" id="b2"><img src="../jacoco-resources/redbar.gif" width="6" height="10" title="42" alt="42"/><img src="../jacoco-resources/greenbar.gif" width="22" height="10" title="155" alt="155"/></td><td class="ctr2" id="c1">78%</td><td class="bar" id="d2"><img src="../jacoco-resources/redbar.gif" width="13" height="10" title="4" alt="4"/><img src="../jacoco-resources/greenbar.gif" width="40" height="10" title="12" alt="12"/></td><td class="ctr2" id="e1">75%</td><td class="ctr1" id="f2">4</td><td class="ctr2" id="g2">13</td><td class="ctr1" id="h2">9</td><td class="ctr2" id="i2">42</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k2">5</td><td class="ctr1" id="l2">0</td><td class="ctr2" id="m2">1</td></tr></tbody></table><div class="footer"><span c lass="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.2.201808211720</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>org.apache.commons.release.plugin.mojos</title><script type="text/javascript" src="../jacoco-resources/sort.js"></script></head><body onload="initialSort(['breadcrumb', 'coveragetable'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="index.source.html" class="el_source">Source Files</a><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons Release Plugin</a> > <span class="el_package">org.apache.commons.release.plugin.mojos</span></div><h1>org.apach e.commons.release.plugin.mojos</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><td class="sortable ctr1" id="l" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="m" onclick="toggleSort(this)">Classes</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">497 of 1,666</td><td class="ctr2">70%</td><td class="bar">31 of 90</td><td class="ctr2">65%</td><td class="ctr1">27</td><td class="ctr2">70</td><td class="ctr1">86</td><td class="ctr2">321</td><td class="ctr1">0</td><td class="ctr2">25</td><td class="ctr1">0</td><td class="ctr2">4</td></tr></tfoot><tbody><tr><td id="a1"><a href="CommonsDistributionStagingMojo.html" class="el_class">CommonsDistributionStagingMojo</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="37" height="10" title="250" alt="250"/><img src="../jacoco-resources/greenbar.gif" width="82" height="10" title="551" alt="551"/></td><td class="ctr2" id="c2">68%</td><td class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="43" height="10" title="13" alt="13"/><img src="../jacoco-resources/greenbar.gif" width="76" height="10" title="23" alt="23"/></td><td class="ctr2" id="e2">63%< /td><td class="ctr1" id="f0">11</td><td class="ctr2" id="g0">27</td><td class="ctr1" id="h0">38</td><td class="ctr2" id="i0">143</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k0">9</td><td class="ctr1" id="l0">0</td><td class="ctr2" id="m0">1</td></tr><tr><td id="a3"><a href="CommonsStagingCleanupMojo.html" class="el_class">CommonsStagingCleanupMojo</a></td><td class="bar" id="b1"><img src="../jacoco-resources/redbar.gif" width="20" height="10" title="135" alt="135"/><img src="../jacoco-resources/greenbar.gif" width="15" height="10" title="103" alt="103"/></td><td class="ctr2" id="c3">43%</td><td class="bar" id="d1"><img src="../jacoco-resources/redbar.gif" width="33" height="10" title="10" alt="10"/><img src="../jacoco-resources/greenbar.gif" width="20" height="10" title="6" alt="6"/></td><td class="ctr2" id="e3">37%</td><td class="ctr1" id="f1">8</td><td class="ctr2" id="g3">10</td><td class="ctr1" id="h1">24</td><td class="ctr2" id="i2">44</td><td class="ctr1" id="j1">0 </td><td class="ctr2" id="k3">2</td><td class="ctr1" id="l1">0</td><td class="ctr2" id="m1">1</td></tr><tr><td id="a0"><a href="CommonsDistributionDetachmentMojo.html" class="el_class">CommonsDistributionDetachmentMojo</a></td><td class="bar" id="b2"><img src="../jacoco-resources/redbar.gif" width="10" height="10" title="70" alt="70"/><img src="../jacoco-resources/greenbar.gif" width="53" height="10" title="360" alt="360"/></td><td class="ctr2" id="c0">83%</td><td class="bar" id="d2"><img src="../jacoco-resources/redbar.gif" width="13" height="10" title="4" alt="4"/><img src="../jacoco-resources/greenbar.gif" width="60" height="10" title="18" alt="18"/></td><td class="ctr2" id="e0">81%</td><td class="ctr1" id="f2">4</td><td class="ctr2" id="g1">20</td><td class="ctr1" id="h2">15</td><td class="ctr2" id="i1">92</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k1">9</td><td class="ctr1" id="l2">0</td><td class="ctr2" id="m2">1</td></tr><tr><td id="a2"><a href="CommonsSiteCompre ssionMojo.html" class="el_class">CommonsSiteCompressionMojo</a></td><td class="bar" id="b3"><img src="../jacoco-resources/redbar.gif" width="6" height="10" title="42" alt="42"/><img src="../jacoco-resources/greenbar.gif" width="23" height="10" title="155" alt="155"/></td><td class="ctr2" id="c1">78%</td><td class="bar" id="d3"><img src="../jacoco-resources/redbar.gif" width="13" height="10" title="4" alt="4"/><img src="../jacoco-resources/greenbar.gif" width="40" height="10" title="12" alt="12"/></td><td class="ctr2" id="e1">75%</td><td class="ctr1" id="f3">4</td><td class="ctr2" id="g2">13</td><td class="ctr1" id="h3">9</td><td class="ctr2" id="i3">42</td><td class="ctr1" id="j3">0</td><td class="ctr2" id="k2">5</td><td class="ctr1" id="l3">0</td><td class="ctr2" id="m3">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.2.201808211720</span></div></body></html> \ No newline at end of file