Added: dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/HeaderHtmlVelocityDelegate.html ============================================================================== --- dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/HeaderHtmlVelocityDelegate.html (added) +++ dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/HeaderHtmlVelocityDelegate.html Sun Nov 3 20:07:40 2024 @@ -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>HeaderHtmlVelocityDelegate</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.velocity</a> > <span class="el_class">HeaderHtmlVelocityDelegate</span></div><h1>HeaderHtmlVelocityDelega te</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">0 of 34</td><td class="ctr2">100%</td><td class="bar">0 of 0</td><td c lass="ctr2">n/a</td><td class="ctr1">0</td><td class="ctr2">2</td><td class="ctr1">0</td><td class="ctr2">9</td><td class="ctr1">0</td><td class="ctr2">2</td></tr></tfoot><tbody><tr><td id="a1"><a href="HeaderHtmlVelocityDelegate.java.html#L58" class="el_method">render(Writer)</a></td><td class="bar" id="b0"><img src="../jacoco-resources/greenbar.gif" width="120" height="10" title="29" alt="29"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d0"/><td class="ctr2" id="e0">n/a</td><td class="ctr1" id="f0">0</td><td class="ctr2" id="g0">1</td><td class="ctr1" id="h0">0</td><td class="ctr2" id="i0">8</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a0"><a href="HeaderHtmlVelocityDelegate.java.html#L48" class="el_method">builder()</a></td><td class="bar" id="b1"><img src="../jacoco-resources/greenbar.gif" width="20" height="10" title="5" alt="5"/></td><td class="ctr2" id="c1">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.12.202403310830</span></div></body></html> \ No newline at end of file
Added: dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/HeaderHtmlVelocityDelegate.java.html ============================================================================== --- dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/HeaderHtmlVelocityDelegate.java.html (added) +++ dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/HeaderHtmlVelocityDelegate.java.html Sun Nov 3 20:07:40 2024 @@ -0,0 +1,88 @@ +<?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>HeaderHtmlVelocityDelegate.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.v elocity</a> > <span class="el_source">HeaderHtmlVelocityDelegate.java</span></div><h1>HeaderHtmlVelocityDelegate.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.velocity; + +import java.io.Writer; + +import org.apache.velocity.Template; +import org.apache.velocity.VelocityContext; +import org.apache.velocity.app.VelocityEngine; +import org.apache.velocity.runtime.RuntimeConstants; +import org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader; + +/** + * This class' purpose is to generate the <code>HEADER.html</code> that moves along with the + * release for the sake of downloading the release from the distribution area. + * + * @since 1.3 + */ +public class HeaderHtmlVelocityDelegate { + + /** The location of the velocity template for this class. */ + private static final String TEMPLATE = "resources/org/apache/commons/release/plugin/velocity/HEADER.vm"; + + /** The private constructor to be used by the {@link HeaderHtmlVelocityDelegateBuilder}. */ + private HeaderHtmlVelocityDelegate() { + } + + /** + * For instantiating our {@link HeaderHtmlVelocityDelegate} using the {@link HeaderHtmlVelocityDelegateBuilder}. + * + * @return a {@link HeaderHtmlVelocityDelegateBuilder}. + */ + public static HeaderHtmlVelocityDelegateBuilder builder() { +<span class="fc" id="L48"> return new HeaderHtmlVelocityDelegateBuilder();</span> + } + + /** + * Builds the HEADER.vm velocity template to the writer passed in. + * + * @param writer any {@link Writer} that we wish to have the filled velocity template written to. + * @return the {@link Writer} that we've filled out the template into. + */ + public Writer render(final Writer writer) { +<span class="fc" id="L58"> final VelocityEngine ve = new VelocityEngine();</span> +<span class="fc" id="L59"> ve.setProperty(RuntimeConstants.RESOURCE_LOADER, "classpath");</span> +<span class="fc" id="L60"> ve.setProperty("classpath.resource.loader.class", ClasspathResourceLoader.class.getName());</span> +<span class="fc" id="L61"> ve.init();</span> +<span class="fc" id="L62"> final Template template = ve.getTemplate(TEMPLATE);</span> +<span class="fc" id="L63"> final VelocityContext context = new VelocityContext();</span> +<span class="fc" id="L64"> template.merge(context, writer);</span> +<span class="fc" id="L65"> return writer;</span> + } + + /** + * A builder class for instantiation of the {@link HeaderHtmlVelocityDelegate}. + */ + public static class HeaderHtmlVelocityDelegateBuilder { + + /** + * Private constructor so that we can have a proper builder pattern. + */ + private HeaderHtmlVelocityDelegateBuilder() { + } + + /** + * Builds up the {@link ReadmeHtmlVelocityDelegate} from the previously set parameters. + * @return a new {@link ReadmeHtmlVelocityDelegate}. + */ + public HeaderHtmlVelocityDelegate build() { +<span class="fc" id="L84"> return new HeaderHtmlVelocityDelegate();</span> + } + } +} +</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.12.202403310830</span></div></body></html> \ No newline at end of file Added: dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/ReadmeHtmlVelocityDelegate$ReadmeHtmlVelocityDelegateBuilder.html ============================================================================== --- dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/ReadmeHtmlVelocityDelegate$ReadmeHtmlVelocityDelegateBuilder.html (added) +++ dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/ReadmeHtmlVelocityDelegate$ReadmeHtmlVelocityDelegateBuilder.html Sun Nov 3 20:07:40 2024 @@ -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>ReadmeHtmlVelocityDelegate.ReadmeHtmlVelocityDelegateBuilder</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.velocity</a> > <span class="el_class">ReadmeHtmlVelocityDelegate.Readme HtmlVelocityDelegateBuilder</span></div><h1>ReadmeHtmlVelocityDelegate.ReadmeHtmlVelocityDelegateBuilder</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><t r><td>Total</td><td class="bar">0 of 26</td><td class="ctr2">100%</td><td class="bar">0 of 0</td><td class="ctr2">n/a</td><td class="ctr1">0</td><td class="ctr2">4</td><td class="ctr1">0</td><td class="ctr2">7</td><td class="ctr1">0</td><td class="ctr2">4</td></tr></tfoot><tbody><tr><td id="a0"><a href="ReadmeHtmlVelocityDelegate.java.html#L159" class="el_method">build()</a></td><td class="bar" id="b0"><img src="../jacoco-resources/greenbar.gif" width="120" height="10" title="11" alt="11"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d0"/><td class="ctr2" id="e0">n/a</td><td class="ctr1" id="f0">0</td><td class="ctr2" id="g0">1</td><td class="ctr1" id="h0">0</td><td class="ctr2" id="i3">1</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a1"><a href="ReadmeHtmlVelocityDelegate.java.html#L130" class="el_method">withArtifactId(String)</a></td><td class="bar" id="b1"><img src="../jacoco-resources/greenbar.gif" width="54" height="10" title= "5" alt="5"/></td><td class="ctr2" id="c1">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="i0">2</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a3"><a href="ReadmeHtmlVelocityDelegate.java.html#L140" class="el_method">withVersion(String)</a></td><td class="bar" id="b2"><img src="../jacoco-resources/greenbar.gif" width="54" height="10" title="5" alt="5"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d2"/><td class="ctr2" id="e2">n/a</td><td class="ctr1" id="f2">0</td><td class="ctr2" id="g2">1</td><td class="ctr1" id="h2">0</td><td class="ctr2" id="i1">2</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a2"><a href="ReadmeHtmlVelocityDelegate.java.html#L150" class="el_method">withSiteUrl(String)</a></td><td class="bar" id="b3"><img src="../jacoco-resources/greenbar.gif" wi dth="54" height="10" title="5" alt="5"/></td><td class="ctr2" id="c3">100%</td><td class="bar" id="d3"/><td class="ctr2" id="e3">n/a</td><td class="ctr1" id="f3">0</td><td class="ctr2" id="g3">1</td><td class="ctr1" id="h3">0</td><td class="ctr2" id="i2">2</td><td class="ctr1" id="j3">0</td><td class="ctr2" id="k3">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.12.202403310830</span></div></body></html> \ No newline at end of file Added: dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/ReadmeHtmlVelocityDelegate.html ============================================================================== --- dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/ReadmeHtmlVelocityDelegate.html (added) +++ dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/ReadmeHtmlVelocityDelegate.html Sun Nov 3 20:07:40 2024 @@ -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>ReadmeHtmlVelocityDelegate</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.velocity</a> > <span class="el_class">ReadmeHtmlVelocityDelegate</span></div><h1>ReadmeHtmlVelocityDelega te</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">0 of 126</td><td class="ctr2">100%</td><td class="bar">1 of 6</td><td class="ctr2">83%</td><td class="ctr1">1</td><td class="ctr2">6</td><td class="ctr1">0</td><td class="ctr2">31</td><td class="ctr1">0</td><td class="ctr2">3</td></tr></tfoot><tbody><tr><td id="a2"><a href="ReadmeHtmlVelocityDelegate.java.html#L75" class="el_method">render(Writer)</a></td><td class="bar" id="b0"><img src="../jacoco-resources/greenbar.gif" width="120" height="10" title="109" alt="109"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="20" height="10" title="1" alt="1"/><img src="../jacoco-resources/greenbar.gif" width="100" height="10" title="5" alt="5"/></td><td class="ctr2" id="e0">83%</td><td class="ctr1" id="f0">1</td><td class="ctr2" id="g0">4</td><td class="ctr1" id="h0">0</td><td class="ctr2" id="i0">25</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a1"><a href="ReadmeHtmlVelocityDelegate.java.html#L52" class="el_method">ReadmeHtmlVelocityDelegate(String, String, St ring)</a></td><td class="bar" id="b1"><img src="../jacoco-resources/greenbar.gif" width="13" height="10" title="12" alt="12"/></td><td class="ctr2" id="c1">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">5</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a0"><a href="ReadmeHtmlVelocityDelegate.java.html#L64" class="el_method">builder()</a></td><td class="bar" id="b2"><img src="../jacoco-resources/greenbar.gif" width="5" height="10" title="5" alt="5"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d2"/><td class="ctr2" id="e2">n/a</td><td class="ctr1" id="f2">0</td><td class="ctr2" id="g2">1</td><td class="ctr1" id="h2">0</td><td class="ctr2" id="i2">1</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k2">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http: //www.jacoco.org/jacoco">JaCoCo</a> 0.8.12.202403310830</span></div></body></html> \ No newline at end of file Added: dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/ReadmeHtmlVelocityDelegate.java.html ============================================================================== --- dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/ReadmeHtmlVelocityDelegate.java.html (added) +++ dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/ReadmeHtmlVelocityDelegate.java.html Sun Nov 3 20:07:40 2024 @@ -0,0 +1,163 @@ +<?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>ReadmeHtmlVelocityDelegate.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.v elocity</a> > <span class="el_source">ReadmeHtmlVelocityDelegate.java</span></div><h1>ReadmeHtmlVelocityDelegate.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.velocity; + +import java.io.Writer; + +import org.apache.commons.lang3.StringUtils; +import org.apache.velocity.Template; +import org.apache.velocity.VelocityContext; +import org.apache.velocity.app.VelocityEngine; +import org.apache.velocity.runtime.RuntimeConstants; +import org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader; + +/** + * This class' purpose is to generate the <code>README.html</code> that moves along with the + * release for the sake of downloading the release from the distribution area. + * + * @since 1.3 + */ +public class ReadmeHtmlVelocityDelegate { + /** The location of the velocity template for this class. */ + private static final String TEMPLATE = "resources/org/apache/commons/release/plugin" + + "/velocity/README.vm"; + /** This is supposed to represent the maven artifactId. */ + private final String artifactId; + /** This is supposed to represent the maven version of the release. */ + private final String version; + /** The url of the site that gets set into the <code>README.html</code>. */ + private final String siteUrl; + + /** + * The private constructor to be used by the {@link ReadmeHtmlVelocityDelegateBuilder}. + * + * @param artifactId sets the {@link ReadmeHtmlVelocityDelegate#artifactId}. + * @param version sets the {@link ReadmeHtmlVelocityDelegate#version}. + * @param siteUrl sets the {@link ReadmeHtmlVelocityDelegate#siteUrl}. + */ +<span class="fc" id="L52"> private ReadmeHtmlVelocityDelegate(final String artifactId, final String version, final String siteUrl) {</span> +<span class="fc" id="L53"> this.artifactId = artifactId;</span> +<span class="fc" id="L54"> this.version = version;</span> +<span class="fc" id="L55"> this.siteUrl = siteUrl;</span> +<span class="fc" id="L56"> }</span> + + /** + * Gets the {@link ReadmeHtmlVelocityDelegateBuilder} for constructing the {@link ReadmeHtmlVelocityDelegate}. + * + * @return the {@link ReadmeHtmlVelocityDelegateBuilder}. + */ + public static ReadmeHtmlVelocityDelegateBuilder builder() { +<span class="fc" id="L64"> return new ReadmeHtmlVelocityDelegateBuilder();</span> + } + + /** + * Renders the <code>README.vm</code> velocity template with the variables constructed with the + * {@link ReadmeHtmlVelocityDelegateBuilder}. + * + * @param writer is the {@link Writer} to which we wish to render the <code>README.vm</code> template. + * @return a reference to the {@link Writer} passed in. + */ + public Writer render(final Writer writer) { +<span class="fc" id="L75"> final VelocityEngine ve = new VelocityEngine();</span> +<span class="fc" id="L76"> ve.setProperty(RuntimeConstants.RESOURCE_LOADER, "classpath");</span> +<span class="fc" id="L77"> ve.setProperty("classpath.resource.loader.class", ClasspathResourceLoader.class.getName());</span> +<span class="fc" id="L78"> ve.init();</span> +<span class="fc" id="L79"> final Template template = ve.getTemplate(TEMPLATE);</span> +<span class="fc" id="L80"> final String[] splitArtifactId = artifactId.split("-");</span> +<span class="fc" id="L81"> final String wordCommons = "commons";</span> +<span class="fc" id="L82"> String artifactShortName = "";</span> +<span class="fc bfc" id="L83" title="All 2 branches covered."> if (splitArtifactId.length > 1) {</span> +<span class="fc" id="L84"> artifactShortName = splitArtifactId[1];</span> +<span class="pc bpc" id="L85" title="1 of 2 branches missed."> } else if (splitArtifactId.length == 1) {</span> +<span class="fc" id="L86"> artifactShortName = splitArtifactId[0];</span> + } + // ".+\\d$" matches a non-empty string that terminates in a digit {0-9}. +<span class="fc bfc" id="L89" title="All 2 branches covered."> if (artifactShortName.matches(".+\\d$")) {</span> +<span class="fc" id="L90"> artifactShortName = artifactShortName.substring(0, artifactShortName.length() - 1);</span> + } +<span class="fc" id="L92"> final String artifactIdWithFirstLetterscapitalized =</span> +<span class="fc" id="L93"> StringUtils.capitalize(wordCommons)</span> + + "-" +<span class="fc" id="L95"> + artifactShortName.toUpperCase();</span> +<span class="fc" id="L96"> final VelocityContext context = new VelocityContext();</span> +<span class="fc" id="L97"> context.internalPut("artifactIdWithFirstLetterscapitalized", artifactIdWithFirstLetterscapitalized);</span> +<span class="fc" id="L98"> context.internalPut("artifactShortName", artifactShortName.toUpperCase());</span> +<span class="fc" id="L99"> context.internalPut("artifactId", artifactId);</span> +<span class="fc" id="L100"> context.internalPut("version", version);</span> +<span class="fc" id="L101"> context.internalPut("siteUrl", siteUrl);</span> +<span class="fc" id="L102"> template.merge(context, writer);</span> +<span class="fc" id="L103"> return writer;</span> + } + + /** + * A builder class for instantiation of the {@link ReadmeHtmlVelocityDelegate}. + */ + public static class ReadmeHtmlVelocityDelegateBuilder { + /** The maven artifactId to use in the <code>README.vm</code> template. */ + private String artifactId; + /** The maven version to use in the <code>README.vm</code> template. */ + private String version; + /** The site url to use in the <code>README.vm</code> template. */ + private String siteUrl; + + /** + * Private constructor for using the builder through the {@link ReadmeHtmlVelocityDelegate#builder()} + * method. + */ + private ReadmeHtmlVelocityDelegateBuilder() { + } + + /** + * Adds the artifactId to the {@link ReadmeHtmlVelocityDelegate}. + * @param artifactId the {@link String} representing the maven artifactId. + * @return the builder to continue building. + */ + public ReadmeHtmlVelocityDelegateBuilder withArtifactId(final String artifactId) { +<span class="fc" id="L130"> this.artifactId = artifactId;</span> +<span class="fc" id="L131"> return this;</span> + } + + /** + * Adds the version to the {@link ReadmeHtmlVelocityDelegate}. + * @param version the maven version. + * @return the builder to continue building. + */ + public ReadmeHtmlVelocityDelegateBuilder withVersion(final String version) { +<span class="fc" id="L140"> this.version = version;</span> +<span class="fc" id="L141"> return this;</span> + } + + /** + * Adds the siteUrl to the {@link ReadmeHtmlVelocityDelegate}. + * @param siteUrl the site url to be used in the <code>README.html</code> + * @return the builder to continue building. + */ + public ReadmeHtmlVelocityDelegateBuilder withSiteUrl(final String siteUrl) { +<span class="fc" id="L150"> this.siteUrl = siteUrl;</span> +<span class="fc" id="L151"> return this;</span> + } + + /** + * Builds up the {@link ReadmeHtmlVelocityDelegate} from the previously set parameters. + * @return a new {@link ReadmeHtmlVelocityDelegate}. + */ + public ReadmeHtmlVelocityDelegate build() { +<span class="fc" id="L159"> return new ReadmeHtmlVelocityDelegate(this.artifactId, this.version, this.siteUrl);</span> + } + } +} +</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.12.202403310830</span></div></body></html> \ No newline at end of file Added: dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/index.html ============================================================================== --- dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/index.html (added) +++ dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/index.html Sun Nov 3 20:07:40 2024 @@ -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>org.apache.commons.release.plugin.velocity</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.velocity</span></div><h1>org .apache.commons.release.plugin.velocity</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="sorta ble ctr2" id="m" onclick="toggleSort(this)">Classes</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">0 of 191</td><td class="ctr2">100%</td><td class="bar">1 of 6</td><td class="ctr2">83%</td><td class="ctr1">1</td><td class="ctr2">13</td><td class="ctr1">0</td><td class="ctr2">48</td><td class="ctr1">0</td><td class="ctr2">10</td><td class="ctr1">0</td><td class="ctr2">4</td></tr></tfoot><tbody><tr><td id="a2"><a href="ReadmeHtmlVelocityDelegate.html" class="el_class">ReadmeHtmlVelocityDelegate</a></td><td class="bar" id="b0"><img src="../jacoco-resources/greenbar.gif" width="120" height="10" title="126" alt="126"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="20" height="10" title="1" alt="1"/><img src="../jacoco-resources/greenbar.gif" width="100" height="10" title="5" alt="5"/></td><td class="ctr2" id="e0">83%</td><td class="ctr1" id="f0">1</td><td class="ctr2" id="g0">6</td><td class="ctr1" id="h0">0</td ><td class="ctr2" id="i0">31</td><td class="ctr1" id="j0">0</td><td >class="ctr2" id="k1">3</td><td class="ctr1" id="l0">0</td><td class="ctr2" >id="m0">1</td></tr><tr><td id="a0"><a href="HeaderHtmlVelocityDelegate.html" >class="el_class">HeaderHtmlVelocityDelegate</a></td><td class="bar" >id="b1"><img src="../jacoco-resources/greenbar.gif" width="32" height="10" >title="34" alt="34"/></td><td class="ctr2" id="c1">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="g2">2</td><td class="ctr1" id="h1">0</td><td class="ctr2" >id="i1">9</td><td class="ctr1" id="j1">0</td><td class="ctr2" >id="k2">2</td><td class="ctr1" id="l1">0</td><td class="ctr2" >id="m1">1</td></tr><tr><td id="a3"><a >href="ReadmeHtmlVelocityDelegate$ReadmeHtmlVelocityDelegateBuilder.html" >class="el_class">ReadmeHtmlVelocityDelegate.ReadmeHtmlVelocityDelegateBuilder</a></td><td > class="bar" id="b2"><img src="../jacoco-resources/greenbar.gif" width="24" >height ="10" title="26" alt="26"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d2"/><td class="ctr2" id="e2">n/a</td><td class="ctr1" id="f2">0</td><td class="ctr2" id="g1">4</td><td class="ctr1" id="h2">0</td><td class="ctr2" id="i2">7</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k0">4</td><td class="ctr1" id="l2">0</td><td class="ctr2" id="m2">1</td></tr><tr><td id="a1"><a href="HeaderHtmlVelocityDelegate$HeaderHtmlVelocityDelegateBuilder.html" class="el_class">HeaderHtmlVelocityDelegate.HeaderHtmlVelocityDelegateBuilder</a></td><td class="bar" id="b3"><img src="../jacoco-resources/greenbar.gif" width="4" height="10" title="5" alt="5"/></td><td class="ctr2" id="c3">100%</td><td class="bar" id="d3"/><td class="ctr2" id="e3">n/a</td><td class="ctr1" id="f3">0</td><td class="ctr2" id="g3">1</td><td class="ctr1" id="h3">0</td><td class="ctr2" id="i3">1</td><td class="ctr1" id="j3">0</td><td class="ctr2" id="k3">1</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.12.202403310830</span></div></body></html> \ No newline at end of file Added: dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/index.source.html ============================================================================== --- dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/index.source.html (added) +++ dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/index.source.html Sun Nov 3 20:07:40 2024 @@ -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>org.apache.commons.release.plugin.velocity</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.html" class="el_class">Classes</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.velocity</span></div><h1>org.apache.commo ns.release.plugin.velocity</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">0 of 191</td><td class="ctr2">100%</td><td class="bar">1 of 6</td><td class="ctr2">83%</td><td class="ctr1">1</td><td class="ctr2">13</td><td class="ctr1">0</td><td class="ctr2">48</td><td class="ctr1">0</td><td class="ctr2">10</td><td class="ctr1">0</td><td class="ctr2">4</td></tr></tfoot><tbody><tr><td id="a1"><a href="ReadmeHtmlVelocityDelegate.java.html" class="el_source">ReadmeHtmlVelocityDelegate.java</a></td><td class="bar" id="b0"><img src="../jacoco-resources/greenbar.gif" width="120" height="10" title="152" alt="152"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="20" height="10" title="1" alt="1"/><img src="../jacoco-resources/greenbar.gif" width="100" height="10" title="5" alt="5"/></td><td class="ctr2" id="e0">83%</td><td class="ctr1" id="f0">1</td><td class="ctr2" id="g0">10</td><td class="ctr1" id="h0">0</td> <td class="ctr2" id="i0">38</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k0">7</td><td class="ctr1" id="l0">0</td><td class="ctr2" id="m0">2</td></tr><tr><td id="a0"><a href="HeaderHtmlVelocityDelegate.java.html" class="el_source">HeaderHtmlVelocityDelegate.java</a></td><td class="bar" id="b1"><img src="../jacoco-resources/greenbar.gif" width="30" height="10" title="39" alt="39"/></td><td class="ctr2" id="c1">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">3</td><td class="ctr1" id="h1">0</td><td class="ctr2" id="i1">10</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k1">3</td><td class="ctr1" id="l1">0</td><td class="ctr2" id="m1">2</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.12.202403310830</span></div></body></html> \ No newline at end of file Added: dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin/SharedFunctions.html ============================================================================== --- dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin/SharedFunctions.html (added) +++ dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin/SharedFunctions.html Sun Nov 3 20:07:40 2024 @@ -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>SharedFunctions</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</a> > <span class="el_class">SharedFunctions</span></div><h1>SharedFunctions</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">123 of 199</td><td class="ctr2">38%</td><td class="bar">7 of 10</td><td class="ctr2">30%</td><td class="ctr1">10 </td><td class="ctr2">14</td><td class="ctr1">17</td><td class="ctr2">37</td><td class="ctr1">5</td><td class="ctr2">9</td></tr></tfoot><tbody><tr><td id="a0"><a href="SharedFunctions.java.html#L57" class="el_method">copyFile(Log, File, File)</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="71" height="10" title="28" alt="28"/><img src="../jacoco-resources/greenbar.gif" width="48" height="10" title="19" alt="19"/></td><td class="ctr2" id="c1">40%</td><td class="bar" id="d4"/><td class="ctr2" id="e4">n/a</td><td class="ctr1" id="f7">0</td><td class="ctr2" id="g4">1</td><td class="ctr1" id="h1">4</td><td class="ctr2" id="i1">10</td><td class="ctr1" id="j5">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a1"><a href="SharedFunctions.java.html#L79" class="el_method">initDirectory(Log, File)</a></td><td class="bar" id="b1"><img src="../jacoco-resources/redbar.gif" width="68" height="10" title="27" alt="27"/><img src="../jacoco-resources/greenbar.gif" width="43" height="10" title="17" alt="17"/></td><td class="ctr2" id="c2">38%</td><td class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="60" height="10" title="2" alt="2"/><img src="../jacoco-resources/greenbar.gif" width="60" height="10" title="2" alt="2"/></td><td class="ctr2" id="e0">50%</td><td class="ctr1" id="f0">2</td><td class="ctr2" id="g0">3</td><td class="ctr1" id="h0">6</td><td class="ctr2" id="i0">12</td><td class="ctr1" id="j6">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a3"><a href="SharedFunctions.java.html#L59" class="el_method">lambda$copyFile$1(File, File)</a></td><td class="bar" id="b2"><img src="../jacoco-resources/redbar.gif" width="33" height="10" title="13" alt="13"/></td><td class="ctr2" id="c4">0%</td><td class="bar" id="d5"/><td class="ctr2" id="e5">n/a</td><td class="ctr1" id="f3">1</td><td class="ctr2" id="g5">1</td><td class="ctr1" id="h4">1</td><td class="ctr2" id="i6">1</td><td class="ctr1" id="j0">1</td><td class="ctr2" i d="k2">1</td></tr><tr><td id="a2"><a href="SharedFunctions.java.html#L58" class="el_method">lambda$copyFile$0(File, File)</a></td><td class="bar" id="b3"><img src="../jacoco-resources/redbar.gif" width="33" height="10" title="13" alt="13"/></td><td class="ctr2" id="c5">0%</td><td class="bar" id="d6"/><td class="ctr2" id="e6">n/a</td><td class="ctr1" id="f4">1</td><td class="ctr2" id="g6">1</td><td class="ctr1" id="h5">1</td><td class="ctr2" id="i7">1</td><td class="ctr1" id="j1">1</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a6"><a href="SharedFunctions.java.html#L140" class="el_method">requireNonNull(Object, String)</a></td><td class="bar" id="b4"><img src="../jacoco-resources/redbar.gif" width="30" height="10" title="12" alt="12"/></td><td class="ctr2" id="c6">0%</td><td class="bar" id="d1"><img src="../jacoco-resources/redbar.gif" width="60" height="10" title="2" alt="2"/></td><td class="ctr2" id="e2">0%</td><td class="ctr1" id="f1">2</td><td class="ctr2" id="g1">2</td><td class="ctr1" id="h2">3</td><td class="ctr2" id="i3">3</td><td class="ctr1" id="j2">1</td><td class="ctr2" id="k4">1</td></tr><tr><td id="a5"><a href="SharedFunctions.java.html#L113" class="el_method">requireNonNull(Object)</a></td><td class="bar" id="b5"><img src="../jacoco-resources/redbar.gif" width="28" height="10" title="11" alt="11"/></td><td class="ctr2" id="c7">0%</td><td class="bar" id="d2"><img src="../jacoco-resources/redbar.gif" width="60" height="10" title="2" alt="2"/></td><td class="ctr2" id="e3">0%</td><td class="ctr1" id="f2">2</td><td class="ctr2" id="g2">2</td><td class="ctr1" id="h3">3</td><td class="ctr2" id="i4">3</td><td class="ctr1" id="j3">1</td><td class="ctr2" id="k5">1</td></tr><tr><td id="a7"><a href="SharedFunctions.java.html#L161" class="el_method">requireNonNull(Object, Supplier)</a></td><td class="bar" id="b6"><img src="../jacoco-resources/redbar.gif" width="25" height="10" title="10" alt="10"/><img src="../jacoco-resources/greenbar.gif" width="10" h eight="10" title="4" alt="4"/></td><td class="ctr2" id="c3">28%</td><td class="bar" id="d3"><img src="../jacoco-resources/redbar.gif" width="30" height="10" title="1" alt="1"/><img src="../jacoco-resources/greenbar.gif" width="30" height="10" title="1" alt="1"/></td><td class="ctr2" id="e1">50%</td><td class="ctr1" id="f5">1</td><td class="ctr2" id="g3">2</td><td class="ctr1" id="h6">1</td><td class="ctr2" id="i5">3</td><td class="ctr1" id="j7">0</td><td class="ctr2" id="k6">1</td></tr><tr><td id="a4"><a href="SharedFunctions.java.html#L80" class="el_method">lambda$initDirectory$2(File)</a></td><td class="bar" id="b7"><img src="../jacoco-resources/redbar.gif" width="22" height="10" title="9" alt="9"/></td><td class="ctr2" id="c8">0%</td><td class="bar" id="d7"/><td class="ctr2" id="e7">n/a</td><td class="ctr1" id="f6">1</td><td class="ctr2" id="g7">1</td><td class="ctr1" id="h7">1</td><td class="ctr2" id="i8">1</td><td class="ctr1" id="j4">1</td><td class="ctr2" id="k7">1</td></tr>< tr><td id="a8"><a href="SharedFunctions.java.html#L183" class="el_method">setAuthentication(ScmProviderRepository, String, Settings, SettingsDecrypter, String, String)</a></td><td class="bar" id="b8"><img src="../jacoco-resources/greenbar.gif" width="91" height="10" title="36" alt="36"/></td><td class="ctr2" id="c0">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="i2">6</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.12.202403310830</span></div></body></html> \ No newline at end of file Added: dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin/SharedFunctions.java.html ============================================================================== --- dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin/SharedFunctions.java.html (added) +++ dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin/SharedFunctions.java.html Sun Nov 3 20:07:40 2024 @@ -0,0 +1,198 @@ +<?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>SharedFunctions.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</a> > <sp an class="el_source">SharedFunctions.java</span></div><h1>SharedFunctions.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; + +import java.io.File; +import java.io.IOException; +import java.util.Optional; +import java.util.function.Supplier; + +import org.apache.maven.plugin.MojoExecutionException; +import org.apache.maven.plugin.logging.Log; +import org.apache.maven.scm.provider.ScmProviderRepository; +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 org.codehaus.plexus.util.FileUtils; + +/** + * Shared static functions for all of our Mojos. + * + * @since 1.0 + */ +public final class SharedFunctions { + + /** + * I want a buffer that is an array with 1024 elements of bytes. We declare + * the constant here for the sake of making the code more readable. + */ + public static final int BUFFER_BYTE_SIZE = 1024; + + /** + * Copies a {@link File} from the <code>fromFile</code> to the <code>toFile</code> and logs the failure + * using the Maven {@link Log}. + * + * @param log the {@link Log}, the maven logger. + * @param fromFile the {@link File} from which to copy. + * @param toFile the {@link File} to which to copy into. + * @throws MojoExecutionException if an {@link IOException} or {@link NullPointerException} is caught. + */ + public static void copyFile(final Log log, final File fromFile, final File toFile) throws MojoExecutionException { +<span class="fc" id="L57"> final String format = "Unable to copy file %s to %s: %s";</span> +<span class="pc" id="L58"> requireNonNull(fromFile, () -> String.format(format, fromFile, toFile));</span> +<span class="pc" id="L59"> requireNonNull(toFile, () -> String.format(format, fromFile, toFile));</span> + try { +<span class="fc" id="L61"> FileUtils.copyFile(fromFile, toFile);</span> +<span class="nc" id="L62"> } catch (final IOException e) {</span> +<span class="nc" id="L63"> final String message = String.format(format, fromFile, toFile, e.getMessage());</span> +<span class="nc" id="L64"> log.error(message);</span> +<span class="nc" id="L65"> throw new MojoExecutionException(message, e);</span> +<span class="fc" id="L66"> }</span> +<span class="fc" id="L67"> }</span> + + /** + * Cleans and then initializes an empty directory that is given by the <code>workingDirectory</code> + * parameter. + * + * @param log is the Maven log for output logging, particularly in regards to error management. + * @param workingDirectory is a {@link File} that represents the directory to first attempt to delete then create. + * @throws MojoExecutionException when an {@link IOException} or {@link NullPointerException} is caught for the + * purpose of bubbling the exception up to Maven properly. + */ + public static void initDirectory(final Log log, final File workingDirectory) throws MojoExecutionException { +<span class="fc" id="L79"> final String format = "Unable to remove directory %s: %s";</span> +<span class="pc" id="L80"> requireNonNull(workingDirectory, () -> String.format(format, workingDirectory));</span> +<span class="pc bpc" id="L81" title="1 of 2 branches missed."> if (workingDirectory.exists()) {</span> + try { +<span class="nc" id="L83"> FileUtils.deleteDirectory(workingDirectory);</span> +<span class="nc" id="L84"> } catch (final IOException e) {</span> +<span class="nc" id="L85"> final String message = String.format(format, workingDirectory, e.getMessage());</span> +<span class="nc" id="L86"> log.error(message);</span> +<span class="nc" id="L87"> throw new MojoExecutionException(message, e);</span> +<span class="nc" id="L88"> }</span> + } +<span class="pc bpc" id="L90" title="1 of 2 branches missed."> if (!workingDirectory.exists()) {</span> +<span class="fc" id="L91"> workingDirectory.mkdirs();</span> + } +<span class="fc" id="L93"> }</span> + + /** + * Checks that the specified object reference is not {@code null}. This method is designed primarily for doing parameter validation in methods and + * constructors, as demonstrated below: <blockquote> + * + * <pre> + * public Foo(Bar bar) { + * this.bar = SharedFunctions.requireNonNull(bar); + * } + * </pre> + * + * </blockquote> + * + * @param obj the object reference to check for nullity + * @param <T> the type of the reference + * @return {@code obj} if not {@code null} + * @throws MojoExecutionException if {@code obj} is {@code null} + */ + public static <T> T requireNonNull(final T obj) throws MojoExecutionException { +<span class="nc bnc" id="L113" title="All 2 branches missed."> if (obj == null) {</span> +<span class="nc" id="L114"> throw new MojoExecutionException(new NullPointerException());</span> + } +<span class="nc" id="L116"> return obj;</span> + } + + /** + * Checks that the specified object reference is not {@code null} and throws a customized {@link MojoExecutionException} if it is. This method is designed + * primarily for doing parameter validation in methods and constructors with multiple parameters, as demonstrated below: <blockquote> + * + * <pre> + * public Foo(Bar bar, Baz baz) { + * this.bar = SharedFunctions.requireNonNull(bar, "bar must not be null"); + * this.baz = SharedFunctions.requireNonNull(baz, "baz must not be null"); + * } + * </pre> + * + * </blockquote> + * + * @param obj the object reference to check for nullity + * @param message detail message to be used in the event that a {@code + * NullPointerException} is thrown + * @param <T> the type of the reference + * @return {@code obj} if not {@code null} + * @throws MojoExecutionException if {@code obj} is {@code null} + */ + public static <T> T requireNonNull(final T obj, final String message) throws MojoExecutionException { +<span class="nc bnc" id="L140" title="All 2 branches missed."> if (obj == null) {</span> +<span class="nc" id="L141"> throw new MojoExecutionException(new NullPointerException(message));</span> + } +<span class="nc" id="L143"> return obj;</span> + } + + /** + * Checks that the specified object reference is not {@code null} and throws a customized {@link MojoExecutionException} if it is. + * <p> + * Unlike the method {@link #requireNonNull(Object, String)}, this method allows creation of the message to be deferred until after the null check is made. + * While this may confer a performance advantage in the non-null case, when deciding to call this method care should be taken that the costs of creating the + * message supplier are less than the cost of just creating the string message directly. + * </p> + * + * @param obj the object reference to check for nullity + * @param messageSupplier supplier of the detail message to be used in the event that a {@code NullPointerException} is thrown + * @param <T> the type of the reference + * @return {@code obj} if not {@code null} + * @throws MojoExecutionException if {@code obj} is {@code null} + */ + public static <T> T requireNonNull(final T obj, final Supplier<String> messageSupplier) throws MojoExecutionException { +<span class="pc bpc" id="L161" title="1 of 2 branches missed."> if (obj == null) {</span> +<span class="nc" id="L162"> throw new MojoExecutionException(new NullPointerException(messageSupplier.get()));</span> + } +<span class="fc" id="L164"> return obj;</span> + } + + /** + * Sets authentication information on the specified {@link ScmProviderRepository}. + * + * @param providerRepository target. + * @param distServer temp. + * @param settings temp. + * @param settingsDecrypter temp. + * @param username temp. + * @param password temp. + */ + public static void setAuthentication(final ScmProviderRepository providerRepository, + final String distServer, + final Settings settings, + final SettingsDecrypter settingsDecrypter, + final String username, + final String password) { +<span class="fc" id="L183"> final Optional<Server> server =</span> +<span class="fc" id="L184"> Optional.ofNullable(distServer).map(settings::getServer).map(DefaultSettingsDecryptionRequest::new)</span> +<span class="fc" id="L185"> .map(settingsDecrypter::decrypt).map(SettingsDecryptionResult::getServer);</span> + +<span class="fc" id="L187"> providerRepository.setUser(server.map(Server::getUsername).orElse(username));</span> +<span class="fc" id="L188"> providerRepository.setPassword(server.map(Server::getPassword).orElse(password));</span> +<span class="fc" id="L189"> }</span> + + /** + * Making the constructor private because the class only contains static methods. + */ + private SharedFunctions() { + // Utility Class + } +} +</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.12.202403310830</span></div></body></html> \ No newline at end of file Added: dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin/index.html ============================================================================== --- dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin/index.html (added) +++ dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin/index.html Sun Nov 3 20:07:40 2024 @@ -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>org.apache.commons.release.plugin</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</span></div><h1>org.apache.commons.re lease.plugin</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="t oggleSort(this)">Classes</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">123 of 199</td><td class="ctr2">38%</td><td class="bar">7 of 10</td><td class="ctr2">30%</td><td class="ctr1">10</td><td class="ctr2">14</td><td class="ctr1">17</td><td class="ctr2">37</td><td class="ctr1">5</td><td class="ctr2">9</td><td class="ctr1">0</td><td class="ctr2">1</td></tr></tfoot><tbody><tr><td id="a0"><a href="SharedFunctions.html" class="el_class">SharedFunctions</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="74" height="10" title="123" alt="123"/><img src="../jacoco-resources/greenbar.gif" width="45" height="10" title="76" alt="76"/></td><td class="ctr2" id="c0">38%</td><td class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="84" height="10" title="7" alt="7"/><img src="../jacoco-resources/greenbar.gif" width="36" height="10" title="3" alt="3"/></td><td class="ctr2" id="e0">30%</td><td class="ctr1" id="f0">10</td><td class="ctr2" id="g0 ">14</td><td class="ctr1" id="h0">17</td><td class="ctr2" id="i0">37</td><td class="ctr1" id="j0">5</td><td class="ctr2" id="k0">9</td><td class="ctr1" id="l0">0</td><td class="ctr2" id="m0">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.12.202403310830</span></div></body></html> \ No newline at end of file Added: dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin/index.source.html ============================================================================== --- dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin/index.source.html (added) +++ dev/commons/release-plugin/1.8.3-RC1/site/jacoco/org.apache.commons.release.plugin/index.source.html Sun Nov 3 20:07:40 2024 @@ -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>org.apache.commons.release.plugin</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.html" class="el_class">Classes</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</span></div><h1>org.apache.commons.release.plugin< /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(thi s)">Classes</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">123 of 199</td><td class="ctr2">38%</td><td class="bar">7 of 10</td><td class="ctr2">30%</td><td class="ctr1">10</td><td class="ctr2">14</td><td class="ctr1">17</td><td class="ctr2">37</td><td class="ctr1">5</td><td class="ctr2">9</td><td class="ctr1">0</td><td class="ctr2">1</td></tr></tfoot><tbody><tr><td id="a0"><a href="SharedFunctions.java.html" class="el_source">SharedFunctions.java</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="74" height="10" title="123" alt="123"/><img src="../jacoco-resources/greenbar.gif" width="45" height="10" title="76" alt="76"/></td><td class="ctr2" id="c0">38%</td><td class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="84" height="10" title="7" alt="7"/><img src="../jacoco-resources/greenbar.gif" width="36" height="10" title="3" alt="3"/></td><td class="ctr2" id="e0">30%</td><td class="ctr1" id="f0">10</td><td class="ctr2" id="g0"> 14</td><td class="ctr1" id="h0">17</td><td class="ctr2" id="i0">37</td><td class="ctr1" id="j0">5</td><td class="ctr2" id="k0">9</td><td class="ctr1" id="l0">0</td><td class="ctr2" id="m0">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.12.202403310830</span></div></body></html> \ No newline at end of file Added: dev/commons/release-plugin/1.8.3-RC1/site/japicmp.diff ============================================================================== --- dev/commons/release-plugin/1.8.3-RC1/site/japicmp.diff (added) +++ dev/commons/release-plugin/1.8.3-RC1/site/japicmp.diff Sun Nov 3 20:07:40 2024 @@ -0,0 +1,3 @@ +Comparing source compatibility of commons-release-plugin-1.8.3.jar against commons-release-plugin-1.8.2.jar +No changes. +Semantic versioning suggestion: 0.0.1 \ No newline at end of file Added: dev/commons/release-plugin/1.8.3-RC1/site/japicmp.html ============================================================================== --- dev/commons/release-plugin/1.8.3-RC1/site/japicmp.html (added) +++ dev/commons/release-plugin/1.8.3-RC1/site/japicmp.html Sun Nov 3 20:07:40 2024 @@ -0,0 +1,538 @@ +<!DOCTYPE html> +<!-- + | Generated by Apache Maven Doxia at 03 November 2024 + | Rendered using Apache Maven Fluido Skin 1.3.0 +--> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> + <head> + <meta charset="ISO-8859-1" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + <meta name="Date-Revision-yyyymmdd" content="20241103" /> + <meta http-equiv="Content-Language" content="en" /> + <title>Commons Release Plugin – </title> + + <link rel="stylesheet" href="./css/bootstrap.min.css" type="text/css" /> + <link rel="stylesheet" href="./css/site.css" type="text/css" /> + <link rel="stylesheet" href="./css/print.css" media="print" /> + + <script type="text/javascript" src="./js/jquery.min.js"></script> + <script type="text/javascript" src="./js/bootstrap.min.js"></script> + <script type="text/javascript" src="./js/prettify.min.js"></script> + <script type="text/javascript" src="./js/site.js"></script> + + + </head> + + <body class="composite"> + <a href="https://commons.apache.org/" id="bannerLeft" title="Apache Commons logo"> + <img class="logo-left" src=" ./images/commons-logo.png +" alt="Apache Commons logo"/> + </a> + <div class="clear"></div> + + <div class="navbar"> + <div class="navbar-inner"> + <div class="container-fluid"> + <a class="brand" href="https://commons.apache.org/proper/commons-release-plugin/">Apache Commons Release Plugin ™</a> + <ul class="nav"> + + <li id="publishDate">Last Published: 03 November 2024</li> + <li class="divider">|</li> <li id="projectVersion">Version: 1.8.3</li> + </ul> + <div class="pull-right"> <ul class="nav"> + <li> + <a href="https://www.apachecon.com/" class="externalLink" title="ApacheCon"> + ApacheCon</a> + </li> + <li> + <a href="https://www.apache.org" class="externalLink" title="Apache"> + Apache</a> + </li> + <li> + <a href="../../" title="Commons"> + Commons</a> + </li> + </ul> +</div> + </div> + </div> + </div> + + <div class="container-fluid"> + <table class="layout-table"> + <tr> + <td class="sidebar"> + <div class="well sidebar-nav"> + <ul class="nav nav-list"> + <li class="nav-header">Release Plugin</li> + <li class="none"> + <a href="index.html" title="Overview"> + Overview</a> + </li> + <li class="none"> + <a href="download_release-plugin.cgi" title="Download"> + Download</a> + </li> + <li class="none"> + <a href="changes-report.html" title="Release History"> + Release History</a> + </li> + <li class="none"> + <a href="plugin-info.html" title="Plugin Documentation"> + Plugin Documentation</a> + </li> + <li class="none"> + <a href="javadocs/api-release/index.html" title="Javadoc (Latest release)"> + Javadoc (Latest release)</a> + </li> + <li class="expanded"> + <a href="development.html" title="Help"> + Help</a> + <ul> + <li class="none"> + <a href="issue-tracking.html" title="Issue Tracking"> + Issue Tracking</a> + </li> + <li class="none"> + <a href="development.html" title="Development"> + Development</a> + </li> + </ul> + </li> + </ul> + <ul class="nav nav-list"> + <li class="nav-header"><i class="icon-info-sign"></i>Project Documentation</li> + <li class="collapsed"> + <a href="project-info.html" title="Project Information"> + Project Information</a> + </li> + <li class="expanded"> + <a href="project-reports.html" title="Project Reports"> + Project Reports</a> + <ul> + <li class="none"> + <a href="changes-report.html" title="Changes"> + Changes</a> + </li> + <li class="none"> + <a href="jira-report.html" title="JIRA Report"> + JIRA Report</a> + </li> + <li class="none"> + <a href="apidocs/index.html" title="Javadoc"> + Javadoc</a> + </li> + <li class="none"> + <a href="xref/index.html" title="Source Xref"> + Source Xref</a> + </li> + <li class="none"> + <a href="xref-test/index.html" title="Test Source Xref"> + Test Source Xref</a> + </li> + <li class="none"> + <a href="rat-report.html" title="Rat Report"> + Rat Report</a> + </li> + <li class="none"> + <a href="jacoco/index.html" title="JaCoCo"> + JaCoCo</a> + </li> + <li class="none active"> + <a href="japicmp.html" title="japicmp"> + japicmp</a> + </li> + <li class="none"> + <a href="checkstyle.html" title="Checkstyle"> + Checkstyle</a> + </li> + <li class="none"> + <a href="spotbugs.html" title="SpotBugs"> + SpotBugs</a> + </li> + <li class="none"> + <a href="pmd.html" title="PMD"> + PMD</a> + </li> + <li class="none"> + <a href="cpd.html" title="CPD"> + CPD</a> + </li> + <li class="none"> + <a href="taglist.html" title="Tag List"> + Tag List</a> + </li> + </ul> + </li> + </ul> + <ul class="nav nav-list"> + <li class="nav-header">Commons</li> + <li class="none"> + <a href="../../" title="Home"> + Home</a> + </li> + <li class="none"> + <a href="https://www.apache.org/licenses/" class="externalLink" title="License"> + License</a> + </li> + <li class="collapsed"> + <a href="../../components.html" title="Components"> + Components</a> + </li> + <li class="collapsed"> + <a href="../../sandbox/index.html" title="Sandbox"> + Sandbox</a> + </li> + <li class="collapsed"> + <a href="../../dormant/index.html" title="Dormant"> + Dormant</a> + </li> + </ul> + <ul class="nav nav-list"> + <li class="nav-header">General Information</li> + <li class="none"> + <a href="../../security.html" title="Security"> + Security</a> + </li> + <li class="none"> + <a href="../../volunteering.html" title="Volunteering"> + Volunteering</a> + </li> + <li class="none"> + <a href="../../patches.html" title="Contributing Patches"> + Contributing Patches</a> + </li> + <li class="none"> + <a href="../../building.html" title="Building Components"> + Building Components</a> + </li> + <li class="none"> + <a href="../../commons-parent-pom.html" title="Commons Parent POM"> + Commons Parent POM</a> + </li> + <li class="none"> + <a href="../../build-plugin/index.html" title="Commons Build Plugin"> + Commons Build Plugin</a> + </li> + <li class="none"> + <a href="../../release-plugin/index.html" title="Commons Release Plugin"> + Commons Release Plugin</a> + </li> + <li class="none"> + <a href="../../site-publish.html" title="Site Publication"> + Site Publication</a> + </li> + <li class="none"> + <a href="../../releases/index.html" title="Releasing Components"> + Releasing Components</a> + </li> + <li class="none"> + <a href="https://cwiki.apache.org/confluence/display/commons/FrontPage" class="externalLink" title="Wiki"> + Wiki</a> + </li> + </ul> + <ul class="nav nav-list"> + <li class="nav-header">ASF</li> + <li class="none"> + <a href="https://www.apache.org/foundation/how-it-works.html" class="externalLink" title="How the ASF works"> + How the ASF works</a> + </li> + <li class="none"> + <a href="https://www.apache.org/foundation/getinvolved.html" class="externalLink" title="Get Involved"> + Get Involved</a> + </li> + <li class="none"> + <a href="https://www.apache.org/dev/" class="externalLink" title="Developer Resources"> + Developer Resources</a> + </li> + <li class="none"> + <a href="https://www.apache.org/foundation/policies/conduct.html" class="externalLink" title="Code of Conduct"> + Code of Conduct</a> + </li> + <li class="none"> + <a href="https://privacy.apache.org/policies/privacy-policy-public.html" class="externalLink" title="Privacy"> + Privacy</a> + </li> + <li class="none"> + <a href="https://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsorship"> + Sponsorship</a> + </li> + <li class="none"> + <a href="https://www.apache.org/foundation/thanks.html" class="externalLink" title="Thanks"> + Thanks</a> + </li> + </ul> + </div> + <div id="poweredBy"> + <a href="https://www.apache.org/events/current-event.html" title="ApacheCon" class="builtBy"> + <img class="builtBy" alt="ApacheCon" src="https://www.apache.org/events/current-event-125x125.png" /> + </a> + <a href="https://maven.apache.org/" title="Maven" class="builtBy"> + <img class="builtBy" alt="Maven" src="https://maven.apache.org/images/logos/maven-feather.png" /> + </a> + </div> + </td> + <td class="content"> + + + +<style> +body { + font-family: Verdana; +} +.title { + font-weight: bold; +} +.new { + color: green; +} +.removed { + color: red; +} +.modified { + color: orange; +} +.unchanged { + color: black; +} +thead tr td { + font-weight: bold; +} +.toc { + margin-top: 1em; + margin-bottom: 1em; + border: 1px solid #dcdcdc; + padding: 5px; + background: #ededed; + display: inline-block; +} +table { + border-collapse: collapse; +} +table tr td { + border: 1px solid black; + padding: 5px; +} +table thead { + background-color: #dee3e9; +} +table tbody tr td.matrix_layout { + background-color: #dee3e9; + font-weight: bold; +} +.class { + margin-bottom: 2em; + border: 1px solid #dcdcdc; + padding: 5px; + background: #ededed; + display: inline-block; +} +.class_compatibilityChanges { + margin-top: 1em; +} + +.class_fileFormatVersion { + margin-top: 1em; +} +.class_generictemplates { + margin-top: 1em; +} +.class_superclass { + margin-top: 1em; +} +.class_interfaces { + margin-top: 1em; +} +.class_fields { + margin-top: 1em; +} +.class_serialVersionUid { + margin-top: 1em; +} +.class_constructors { + margin-top: 1em; +} +.class_methods { + margin-top: 1em; +} +.class_annotations { + margin-top: 1em; +} +.label { + font-weight: bold; +} +.label_class_member { + background-color: #4d7a97; + display: inline-block; + padding: 5px; +} +.toc_link { + margin-left: 10px; + font-size: 0.5em; +} +.modifier { + font-style: italic; +} +.method_return_type { + +} +.method_parameter { + +} +ul { + list-style-type: none; + padding: 0px 0px; +} +.meta-information { + margin-top: 1em; + margin-bottom: 1em; + background: #ededed; + display: inline-block; +} +.warnings { + margin-top: 1em; + font-size: 0.75em; +} +.explanations { + margin-bottom: 2em; +} +.table_head_td { + background-color: #dee3e9; + font-weight: bold; +} + +.tooltip { + position: relative; + display: inline-block; + border-bottom: 1px dotted black; +} + +.tooltip .tooltiptext { + visibility: hidden; + background-color: #fff; + text-align: center; + padding: 5px; + border-radius: 6px; + + /* Position the tooltip text */ + position: absolute; + z-index: 1; + bottom: 125%; + left: 50%; + margin-left: -60px; + + /* Fade in tooltip */ + opacity: 0; + transition: opacity 0.3s; +} + +/* Tooltip arrow */ +.tooltip .tooltiptext::after { + content: ""; + position: absolute; + top: 100%; + left: 50%; + margin-left: -5px; + border-width: 5px; + border-style: solid; + border-color: #555 transparent transparent transparent; +} + +/* Show the tooltip text when you mouse over the tooltip container */ +.tooltip:hover .tooltiptext { + visibility: visible; + opacity: 1; +} + +</style> + + +<span class="title">Comparing source compatibility of commons-release-plugin-1.8.3.jar against commons-release-plugin-1.8.2.jar</span> +<br/> +<div class="meta-information"> + <table> + <tr> + <td>Old:</td> + <td> + commons-release-plugin-1.8.2.jar + </td> + </tr> + <tr> + <td>New:</td> + <td> + commons-release-plugin-1.8.3.jar + </td> + </tr> + <tr> + <td>Created:</td> + <td> + 2024-11-03T20:06:19.934+0000 + </td> + </tr> + <tr> + <td>Access modifier filter:</td> + <td id="meta-accessmodifier-value"> + PROTECTED + </td> + </tr> + <tr> + <td>Only modifications:</td> + <td> + true + </td> + </tr> + <tr> + <td>Only binary incompatible modifications:</td> + <td> + false + </td> + </tr> + <tr> + <td>Ignore missing classes:</td> + <td> + false + </td> + </tr> + <tr> + <td>Includes:</td> + <td> + all + </td> + </tr> + <tr> + <td>Excludes:</td> + <td> + n.a. + </td> + </tr> + <tr> + <td id="semver-label">Semantic Versioning:</td> + <td id="semver-version"> + 0.0.1 + </td> + </tr> + </table> +</div> + +<div class="explanations"> +<span>Binary incompatible changes are marked with (!) while source incompatible changes are marked with (*).</span> +</div> + + + + </td> + </tr> + </table> + </div> + + <div class="footer"> + <p>Copyright © 2018-2024 + <a href="https://www.apache.org/">The Apache Software Foundation</a>. + All Rights Reserved.</p> + +<div class="center">Apache Commons, Apache Commons Release Plugin, Apache, the Apache feather logo, and the Apache Commons project logos are trademarks of The Apache Software Foundation. + All other marks mentioned may be trademarks or registered trademarks of their respective owners.</div> + </div> + </body> + +</html> Added: dev/commons/release-plugin/1.8.3-RC1/site/japicmp.md ============================================================================== --- dev/commons/release-plugin/1.8.3-RC1/site/japicmp.md (added) +++ dev/commons/release-plugin/1.8.3-RC1/site/japicmp.md Sun Nov 3 20:07:40 2024 @@ -0,0 +1,53 @@ + +# Compatibility Report + + + +## Summary + +> [!NOTE] +> +> No incompatible changes found while checking backward compatibility of version `1.8.3` with the previous version `1.8.2`. + +<details markdown="1"> +<summary>Expand to see options used.</summary> + +- **Report only summary**: No +- **Report only changes**: Yes +- **Report only binary-incompatible changes**: No +- **Access modifier filter**: `PROTECTED` +- **Old archives**: + -  +- **New archives**: + -  +- **Evaluate annotations**: Yes +- **Include synthetic classes and class members**: No +- **Include specific elements**: No +- **Exclude specific elements**: No +- **Ignore all missing classes**: No +- **Ignore specific missing classes**: No +- **Treat changes as errors**: + - Any changes: No + - Binary incompatible changes: No + - Source incompatible changes: No + - Incompatible changes caused by excluded classes: Yes + - Semantically incompatible changes: No + - Semantically incompatible changes, including development versions: No +- **Classpath mode**: `ONE_COMMON_CLASSPATH` +- **Old classpath**: +``` + +``` +- **New classpath**: +``` + +``` + +</details> + + +___ + +*Generated on: 2024-11-03 20:06:19.641+0000*. + +