You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ch...@apache.org on 2018/08/25 01:39:02 UTC

svn commit: r28953 [18/29] - in /dev/commons/commons-release-plugin/1.4-RC1: ./ binaries/ site/ site/apidocs/ site/apidocs/org/ site/apidocs/org/apache/ site/apidocs/org/apache/commons/ site/apidocs/org/apache/commons/release/ site/apidocs/org/apache/c...

Added: dev/commons/commons-release-plugin/1.4-RC1/site/jacoco/org.apache.commons.release.plugin.mojos/CommonsDistributionStagingMojo.java.html
==============================================================================
--- dev/commons/commons-release-plugin/1.4-RC1/site/jacoco/org.apache.commons.release.plugin.mojos/CommonsDistributionStagingMojo.java.html (added)
+++ dev/commons/commons-release-plugin/1.4-RC1/site/jacoco/org.apache.commons.release.plugin.mojos/CommonsDistributionStagingMojo.java.html Sat Aug 25 01:39:02 2018
@@ -0,0 +1,460 @@
+<?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.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> &gt; <a href="index.source.html" class="el_package">org.apache.commons.release.plug
 in.mojos</a> &gt; <span class="el_source">CommonsDistributionStagingMojo.java</span></div><h1>CommonsDistributionStagingMojo.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 &quot;License&quot;); 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 &quot;AS IS&quot; 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.io.FileUtils;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.commons.release.plugin.SharedFunctions;
+import org.apache.commons.release.plugin.velocity.HeaderHtmlVelocityDelegate;
+import org.apache.commons.release.plugin.velocity.ReadmeHtmlVelocityDelegate;
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.plugin.logging.Log;
+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.add.AddScmResult;
+import org.apache.maven.scm.command.checkin.CheckInScmResult;
+import org.apache.maven.scm.command.checkout.CheckOutScmResult;
+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 java.io.File;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.OutputStreamWriter;
+import java.io.Writer;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+
+/**
+ * This class checks out the dev distribution location, copies the distributions into that directory
+ * structure under the &lt;code&gt;target/commons-release-plugin/scm&lt;/code&gt; directory. Then commits the
+ * distributions back up to SVN. Also, we include the built and zipped site as well as the RELEASE-NOTES.txt.
+ *
+ * @author chtompki
+ * @since 1.0
+ */
+@Mojo(name = &quot;stage-distributions&quot;,
+        defaultPhase = LifecyclePhase.DEPLOY,
+        threadSafe = true,
+        aggregator = true)
+<span class="fc" id="L65">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 = &quot;README.html&quot;;
+    /** The name of file generated from the HEADER.vm velocity template to be checked into the dist svn repo. */
+    private static final String HEADER_FILE_NAME = &quot;HEADER.html&quot;;
+
+    /**
+     * The {@link MavenProject} object is essentially the context of the maven build at
+     * a given time.
+     */
+    @Parameter(defaultValue = &quot;${project}&quot;, required = true)
+    private MavenProject project;
+
+    /**
+     * The {@link File} that contains a file to the root directory of the working project. Typically
+     * this directory is where the &lt;code&gt;pom.xml&lt;/code&gt; resides.
+     */
+    @Parameter(defaultValue = &quot;${basedir}&quot;)
+    private File baseDir;
+
+    /** The location to which the site gets built during running &lt;code&gt;mvn site&lt;/code&gt;. */
+    @Parameter(defaultValue = &quot;${project.build.directory}/site&quot;, property = &quot;commons.siteOutputDirectory&quot;)
+    private File siteDirectory;
+
+    /**
+     * The main working directory for the plugin, namely &lt;code&gt;target/commons-release-plugin&lt;/code&gt;, but
+     * that assumes that we're using the default maven &lt;code&gt;${project.build.directory}&lt;/code&gt;.
+     */
+    @Parameter(defaultValue = &quot;${project.build.directory}/commons-release-plugin&quot;, property = &quot;commons.outputDirectory&quot;)
+    private File workingDirectory;
+
+    /**
+     * The location to which to checkout the dist subversion repository under our working directory, which
+     * was given above.
+     */
+    @Parameter(defaultValue = &quot;${project.build.directory}/commons-release-plugin/scm&quot;,
+            property = &quot;commons.distCheckoutDirectory&quot;)
+    private File distCheckoutDirectory;
+
+    /**
+     * The location of the RELEASE-NOTES.txt file such that multi-module builds can configure it.
+     */
+    @Parameter(defaultValue = &quot;${basedir}/RELEASE-NOTES.txt&quot;, property = &quot;commons.releaseNotesLocation&quot;)
+    private File releaseNotesFile;
+
+    /**
+     * A boolean that determines whether or not we actually commit the files up to the subversion repository.
+     * If this is set to &lt;code&gt;true&lt;/code&gt;, we do all but make the commits. We do checkout the repository in question
+     * though.
+     */
+    @Parameter(property = &quot;commons.release.dryRun&quot;, defaultValue = &quot;false&quot;)
+    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: &lt;code&gt;scm:svn:https://dist.apache.org/repos/dist/dev/commons/foo/version-RC#&lt;/code&gt;. Note. that
+     * the prefix to the substring &lt;code&gt;https&lt;/code&gt; is a requirement.
+     */
+    @Parameter(defaultValue = &quot;&quot;, property = &quot;commons.distSvnStagingUrl&quot;)
+    private String distSvnStagingUrl;
+
+    /**
+     * A parameter to generally avoid running unless it is specifically turned on by the consuming module.
+     */
+    @Parameter(defaultValue = &quot;false&quot;, property = &quot;commons.release.isDistModule&quot;)
+    private Boolean isDistModule;
+
+    /**
+     * The release version of the artifact to be built.
+     */
+    @Parameter(property = &quot;commons.release.version&quot;)
+    private String commonsReleaseVersion;
+
+    /**
+     * The RC version of the release. For example the first voted on candidate would be &quot;RC1&quot;.
+     */
+    @Parameter(property = &quot;commons.rc.version&quot;)
+    private String commonsRcVersion;
+
+    /**
+     * The username for the distribution subversion repository. This is typically your Apache id.
+     */
+    @Parameter(property = &quot;user.name&quot;)
+    private String username;
+
+    /**
+     * The password associated with {@link CommonsDistributionStagingMojo#username}.
+     */
+    @Parameter(property = &quot;user.password&quot;)
+    private String password;
+
+    /**
+     * A subdirectory of the dist directory into which we are going to stage the release candidate. We
+     * build this up in the {@link CommonsDistributionStagingMojo#execute()} method. And, for example,
+     * the directory should look like &lt;code&gt;https://https://dist.apache.org/repos/dist/dev/commons/text/1.4-RC1&lt;/code&gt;.
+     */
+    private File distVersionRcVersionDirectory;
+
+    @Override
+    public void execute() throws MojoExecutionException, MojoFailureException {
+<span class="fc bfc" id="L166" title="All 2 branches covered.">        if (!isDistModule) {</span>
+<span class="fc" id="L167">            getLog().info(&quot;This module is marked as a non distribution &quot;</span>
+                    + &quot;or assembly module, and the plugin will not run.&quot;);
+<span class="fc" id="L169">            return;</span>
+        }
+<span class="pc bpc" id="L171" title="1 of 2 branches missed.">        if (StringUtils.isEmpty(distSvnStagingUrl)) {</span>
+<span class="nc" id="L172">            getLog().warn(&quot;commons.distSvnStagingUrl is not set, the commons-release-plugin will not run.&quot;);</span>
+<span class="nc" id="L173">            return;</span>
+        }
+<span class="pc bpc" id="L175" title="1 of 2 branches missed.">        if (!workingDirectory.exists()) {</span>
+<span class="nc" id="L176">            getLog().info(&quot;Current project contains no distributions. Not executing.&quot;);</span>
+<span class="nc" id="L177">            return;</span>
+        }
+<span class="fc" id="L179">        getLog().info(&quot;Preparing to stage distributions&quot;);</span>
+        try {
+<span class="fc" id="L181">            ScmManager scmManager = new BasicScmManager();</span>
+<span class="fc" id="L182">            scmManager.setScmProvider(&quot;svn&quot;, new SvnExeScmProvider());</span>
+<span class="fc" id="L183">            ScmRepository repository = scmManager.makeScmRepository(distSvnStagingUrl);</span>
+<span class="fc" id="L184">            ScmProvider provider = scmManager.getProviderByRepository(repository);</span>
+<span class="fc" id="L185">            SvnScmProviderRepository providerRepository = (SvnScmProviderRepository) repository.getProviderRepository();</span>
+<span class="fc" id="L186">            providerRepository.setUser(username);</span>
+<span class="fc" id="L187">            providerRepository.setPassword(password);</span>
+<span class="fc" id="L188">            distVersionRcVersionDirectory =</span>
+                    new File(distCheckoutDirectory, commonsReleaseVersion + &quot;-&quot; + commonsRcVersion);
+<span class="pc bpc" id="L190" title="1 of 2 branches missed.">            if (!distCheckoutDirectory.exists()) {</span>
+<span class="fc" id="L191">                SharedFunctions.initDirectory(getLog(), distCheckoutDirectory);</span>
+            }
+<span class="fc" id="L193">            ScmFileSet scmFileSet = new ScmFileSet(distCheckoutDirectory);</span>
+<span class="fc" id="L194">            getLog().info(&quot;Checking out dist from: &quot; + distSvnStagingUrl);</span>
+<span class="fc" id="L195">            final CheckOutScmResult checkOutResult = provider.checkOut(repository, scmFileSet);</span>
+<span class="pc bpc" id="L196" title="1 of 2 branches missed.">            if (!checkOutResult.isSuccess()) {</span>
+<span class="nc" id="L197">                throw new MojoExecutionException(&quot;Failed to checkout files from SCM: &quot;</span>
+<span class="nc" id="L198">                        + checkOutResult.getProviderMessage() + &quot; [&quot; + checkOutResult.getCommandOutput() + &quot;]&quot;);</span>
+            }
+<span class="fc" id="L200">            File copiedReleaseNotes = copyReleaseNotesToWorkingDirectory();</span>
+<span class="fc" id="L201">            copyDistributionsIntoScmDirectoryStructureAndAddToSvn(copiedReleaseNotes,</span>
+                    provider, repository);
+<span class="fc" id="L203">            List&lt;File&gt; filesToAdd = new ArrayList&lt;&gt;();</span>
+<span class="fc" id="L204">            listNotHiddenFilesAndDirectories(distCheckoutDirectory, filesToAdd);</span>
+<span class="pc bpc" id="L205" title="1 of 2 branches missed.">            if (!dryRun) {</span>
+<span class="nc" id="L206">                ScmFileSet fileSet = new ScmFileSet(distCheckoutDirectory, filesToAdd);</span>
+<span class="nc" id="L207">                AddScmResult addResult = provider.add(</span>
+                        repository,
+                        fileSet
+                );
+<span class="nc bnc" id="L211" title="All 2 branches missed.">                if (!addResult.isSuccess()) {</span>
+<span class="nc" id="L212">                    throw new MojoExecutionException(&quot;Failed to add files to SCM: &quot; + addResult.getProviderMessage()</span>
+<span class="nc" id="L213">                            + &quot; [&quot; + addResult.getCommandOutput() + &quot;]&quot;);</span>
+                }
+<span class="nc" id="L215">                getLog().info(&quot;Staging release: &quot; + project.getArtifactId() + &quot;, version: &quot; + project.getVersion());</span>
+<span class="nc" id="L216">                CheckInScmResult checkInResult = provider.checkIn(</span>
+                        repository,
+                        fileSet,
+<span class="nc" id="L219">                        &quot;Staging release: &quot; + project.getArtifactId() + &quot;, version: &quot; + project.getVersion()</span>
+                );
+<span class="nc bnc" id="L221" title="All 2 branches missed.">                if (!checkInResult.isSuccess()) {</span>
+<span class="nc" id="L222">                    getLog().error(&quot;Committing dist files failed: &quot; + checkInResult.getCommandOutput());</span>
+<span class="nc" id="L223">                    throw new MojoExecutionException(</span>
+<span class="nc" id="L224">                            &quot;Committing dist files failed: &quot; + checkInResult.getCommandOutput()</span>
+                    );
+                }
+<span class="nc" id="L227">                getLog().info(&quot;Committed revision &quot; + checkInResult.getScmRevision());</span>
+<span class="nc" id="L228">            } else {</span>
+<span class="fc" id="L229">                getLog().info(&quot;[Dry run] Would have committed to: &quot; + distSvnStagingUrl);</span>
+<span class="fc" id="L230">                getLog().info(</span>
+<span class="fc" id="L231">                        &quot;[Dry run] Staging release: &quot; + project.getArtifactId() + &quot;, version: &quot; + project.getVersion());</span>
+            }
+<span class="nc" id="L233">        } catch (ScmException e) {</span>
+<span class="nc" id="L234">            getLog().error(&quot;Could not commit files to dist: &quot; + distSvnStagingUrl, e);</span>
+<span class="nc" id="L235">            throw new MojoExecutionException(&quot;Could not commit files to dist: &quot; + distSvnStagingUrl, e);</span>
+<span class="fc" id="L236">        }</span>
+<span class="fc" id="L237">    }</span>
+
+    /**
+     * Lists all directories and files to a flat list.
+     * @param directory {@link File} containing directory to list
+     * @param files a {@link List} of {@link File} to which to append the files.
+     */
+    private void listNotHiddenFilesAndDirectories(File directory, List&lt;File&gt; files) {
+        // Get all the files and directories from a directory.
+<span class="fc" id="L246">        File[] fList = directory.listFiles();</span>
+<span class="fc bfc" id="L247" title="All 2 branches covered.">        for (File file : fList) {</span>
+<span class="pc bpc" id="L248" title="1 of 4 branches missed.">            if (file.isFile() &amp;&amp; !file.isHidden()) {</span>
+<span class="fc" id="L249">                files.add(file);</span>
+<span class="pc bpc" id="L250" title="1 of 4 branches missed.">            } else if (file.isDirectory() &amp;&amp; !file.isHidden()) {</span>
+<span class="fc" id="L251">                files.add(file);</span>
+<span class="fc" id="L252">                listNotHiddenFilesAndDirectories(file, files);</span>
+            }
+        }
+<span class="fc" id="L255">    }</span>
+
+    /**
+     * A utility method that takes the &lt;code&gt;RELEASE-NOTES.txt&lt;/code&gt; file from the base directory of the
+     * project and copies it into {@link CommonsDistributionStagingMojo#workingDirectory}.
+     *
+     * @return the RELEASE-NOTES.txt file that exists in the &lt;code&gt;target/commons-release-notes/scm&lt;/code&gt;
+     *         directory for the purpose of adding it to the scm change set in the method
+     *         {@link CommonsDistributionStagingMojo#copyDistributionsIntoScmDirectoryStructureAndAddToSvn(File,
+     *         ScmProvider, ScmRepository)}.
+     * @throws MojoExecutionException if an {@link IOException} occurs as a wrapper so that maven
+     *                                can properly handle the exception.
+     */
+    private File copyReleaseNotesToWorkingDirectory() throws MojoExecutionException {
+<span class="fc" id="L269">        SharedFunctions.initDirectory(getLog(), distVersionRcVersionDirectory);</span>
+<span class="fc" id="L270">        getLog().info(&quot;Copying RELEASE-NOTES.txt to working directory.&quot;);</span>
+<span class="fc" id="L271">        File copiedReleaseNotes = new File(distVersionRcVersionDirectory, releaseNotesFile.getName());</span>
+<span class="fc" id="L272">        SharedFunctions.copyFile(getLog(), releaseNotesFile, copiedReleaseNotes);</span>
+<span class="fc" id="L273">        return copiedReleaseNotes;</span>
+    }
+
+    /**
+     * Copies the list of files at the root of the {@link CommonsDistributionStagingMojo#workingDirectory} into
+     * the directory structure of the distribution staging repository. Specifically:
+     * &lt;ul&gt;
+     *   &lt;li&gt;root:
+     *     &lt;ul&gt;
+     *         &lt;li&gt;site&lt;/li&gt;
+     *         &lt;li&gt;site.zip&lt;/li&gt;
+     *         &lt;li&gt;RELEASE-NOTES.txt&lt;/li&gt;
+     *         &lt;li&gt;source:
+     *           &lt;ul&gt;
+     *             &lt;li&gt;-src artifacts....&lt;/li&gt;
+     *           &lt;/ul&gt;
+     *         &lt;/li&gt;
+     *         &lt;li&gt;binaries:
+     *           &lt;ul&gt;
+     *             &lt;li&gt;-bin artifacts....&lt;/li&gt;
+     *           &lt;/ul&gt;
+     *         &lt;/li&gt;
+     *     &lt;/ul&gt;
+     *   &lt;/li&gt;
+     * &lt;/ul&gt;
+     *
+     * @param copiedReleaseNotes is the RELEASE-NOTES.txt file that exists in the
+     *                           &lt;code&gt;target/commons-release-plugin/scm&lt;/code&gt; directory.
+     * @param provider is the {@link ScmProvider} that we will use for adding the files we wish to commit.
+     * @param repository is the {@link ScmRepository} that we will use for adding the files that we wish to commit.
+     * @return a {@link List} of {@link File}'s in the directory for the purpose of adding them to the maven
+     *         {@link ScmFileSet}.
+     * @throws MojoExecutionException if an {@link IOException} occurs so that Maven can handle it properly.
+     */
+    private List&lt;File&gt; copyDistributionsIntoScmDirectoryStructureAndAddToSvn(File copiedReleaseNotes,
+                                                                             ScmProvider provider,
+                                                                             ScmRepository repository)
+            throws MojoExecutionException {
+<span class="fc" id="L311">        List&lt;File&gt; workingDirectoryFiles = Arrays.asList(workingDirectory.listFiles());</span>
+<span class="fc" id="L312">        List&lt;File&gt; filesForMavenScmFileSet = new ArrayList&lt;&gt;();</span>
+<span class="fc" id="L313">        File scmBinariesRoot = new File(distVersionRcVersionDirectory, &quot;binaries&quot;);</span>
+<span class="fc" id="L314">        File scmSourceRoot = new File(distVersionRcVersionDirectory, &quot;source&quot;);</span>
+<span class="fc" id="L315">        SharedFunctions.initDirectory(getLog(), scmBinariesRoot);</span>
+<span class="fc" id="L316">        SharedFunctions.initDirectory(getLog(), scmSourceRoot);</span>
+        File copy;
+<span class="fc bfc" id="L318" title="All 2 branches covered.">        for (File file : workingDirectoryFiles) {</span>
+<span class="fc bfc" id="L319" title="All 2 branches covered.">            if (file.getName().contains(&quot;src&quot;)) {</span>
+<span class="fc" id="L320">                copy = new File(scmSourceRoot,  file.getName());</span>
+<span class="fc" id="L321">                SharedFunctions.copyFile(getLog(), file, copy);</span>
+<span class="fc" id="L322">                filesForMavenScmFileSet.add(file);</span>
+<span class="fc bfc" id="L323" title="All 2 branches covered.">            } else if (file.getName().contains(&quot;bin&quot;)) {</span>
+<span class="fc" id="L324">                copy = new File(scmBinariesRoot,  file.getName());</span>
+<span class="fc" id="L325">                SharedFunctions.copyFile(getLog(), file, copy);</span>
+<span class="fc" id="L326">                filesForMavenScmFileSet.add(file);</span>
+<span class="pc bpc" id="L327" title="1 of 2 branches missed.">            } else if (StringUtils.containsAny(file.getName(), &quot;scm&quot;, &quot;sha256.properties&quot;, &quot;sha512.properties&quot;)) {</span>
+<span class="fc" id="L328">                getLog().debug(&quot;Not copying scm directory over to the scm directory because it is the scm directory.&quot;);</span>
+                //do nothing because we are copying into scm
+            } else {
+<span class="nc" id="L331">                copy = new File(distCheckoutDirectory.getAbsolutePath(),  file.getName());</span>
+<span class="nc" id="L332">                SharedFunctions.copyFile(getLog(), file, copy);</span>
+<span class="nc" id="L333">                filesForMavenScmFileSet.add(file);</span>
+            }
+<span class="fc" id="L335">        }</span>
+<span class="fc" id="L336">        filesForMavenScmFileSet.addAll(buildReadmeAndHeaderHtmlFiles());</span>
+<span class="fc" id="L337">        filesForMavenScmFileSet.addAll(copySiteToScmDirectory());</span>
+<span class="fc" id="L338">        return filesForMavenScmFileSet;</span>
+    }
+
+    /**
+     * Copies &lt;code&gt;${basedir}/target/site&lt;/code&gt; to &lt;code&gt;${basedir}/target/commons-release-plugin/scm/site&lt;/code&gt;.
+     *
+     * @return the {@link List} of {@link File}'s contained in
+     *         &lt;code&gt;${basedir}/target/commons-release-plugin/scm/site&lt;/code&gt;, after the copy is complete.
+     * @throws MojoExecutionException if the site copying fails for some reason.
+     */
+    private List&lt;File&gt; copySiteToScmDirectory() throws MojoExecutionException {
+<span class="pc bpc" id="L349" title="1 of 2 branches missed.">        if (!siteDirectory.exists()) {</span>
+<span class="nc" id="L350">            getLog().error(&quot;\&quot;mvn site\&quot; was not run before this goal, or a siteDirectory did not exist.&quot;);</span>
+<span class="nc" id="L351">            throw new MojoExecutionException(</span>
+                    &quot;\&quot;mvn site\&quot; was not run before this goal, or a siteDirectory did not exist.&quot;
+            );
+        }
+        try {
+<span class="fc" id="L356">            FileUtils.copyDirectoryToDirectory(siteDirectory, distVersionRcVersionDirectory);</span>
+<span class="nc" id="L357">        } catch (IOException e) {</span>
+<span class="nc" id="L358">            throw new MojoExecutionException(&quot;Site copying failed&quot;, e);</span>
+<span class="fc" id="L359">        }</span>
+<span class="fc" id="L360">        File siteInScm = new File(distVersionRcVersionDirectory, &quot;site&quot;);</span>
+<span class="fc" id="L361">        return new ArrayList&lt;&gt;(FileUtils.listFiles(siteInScm, null, true));</span>
+    }
+
+    /**
+     * Builds up &lt;code&gt;README.html&lt;/code&gt; and &lt;code&gt;HEADER.html&lt;/code&gt; that reside in following.
+     * &lt;ul&gt;
+     *     &lt;li&gt;distRoot
+     *     &lt;ul&gt;
+     *         &lt;li&gt;binaries/HEADER.html (symlink)&lt;/li&gt;
+     *         &lt;li&gt;binaries/README.html (symlink)&lt;/li&gt;
+     *         &lt;li&gt;source/HEADER.html (symlink)&lt;/li&gt;
+     *         &lt;li&gt;source/README.html (symlink)&lt;/li&gt;
+     *         &lt;li&gt;HEADER.html&lt;/li&gt;
+     *         &lt;li&gt;README.html&lt;/li&gt;
+     *     &lt;/ul&gt;
+     *     &lt;/li&gt;
+     * &lt;/ul&gt;
+     * @return the {@link List} of created files above
+     * @throws MojoExecutionException if an {@link IOException} occurs in the creation of these
+     *                                files fails.
+     */
+    private List&lt;File&gt; buildReadmeAndHeaderHtmlFiles() throws MojoExecutionException {
+<span class="fc" id="L383">        List&lt;File&gt; headerAndReadmeFiles = new ArrayList&lt;&gt;();</span>
+<span class="fc" id="L384">        File headerFile = new File(distVersionRcVersionDirectory, HEADER_FILE_NAME);</span>
+        //
+        // HEADER file
+        //
+<span class="fc" id="L388">        try (Writer headerWriter = new OutputStreamWriter(new FileOutputStream(headerFile), &quot;UTF-8&quot;)) {</span>
+<span class="fc" id="L389">            HeaderHtmlVelocityDelegate.builder().build().render(headerWriter);</span>
+<span class="nc" id="L390">        } catch (IOException e) {</span>
+<span class="nc" id="L391">            final String message = &quot;Could not build HEADER html file &quot; + headerFile;</span>
+<span class="nc" id="L392">            getLog().error(message, e);</span>
+<span class="nc" id="L393">            throw new MojoExecutionException(message, e);</span>
+<span class="fc" id="L394">        }</span>
+<span class="fc" id="L395">        headerAndReadmeFiles.add(headerFile);</span>
+        //
+        // README file
+        //
+<span class="fc" id="L399">        File readmeFile = new File(distVersionRcVersionDirectory, README_FILE_NAME);</span>
+<span class="fc" id="L400">        try (Writer readmeWriter = new OutputStreamWriter(new FileOutputStream(readmeFile), &quot;UTF-8&quot;)) {</span>
+            // @formatter:off
+<span class="fc" id="L402">            ReadmeHtmlVelocityDelegate readmeHtmlVelocityDelegate = ReadmeHtmlVelocityDelegate.builder()</span>
+<span class="fc" id="L403">                    .withArtifactId(project.getArtifactId())</span>
+<span class="fc" id="L404">                    .withVersion(project.getVersion())</span>
+<span class="fc" id="L405">                    .withSiteUrl(project.getUrl())</span>
+<span class="fc" id="L406">                    .build();</span>
+            // @formatter:on
+<span class="fc" id="L408">            readmeHtmlVelocityDelegate.render(readmeWriter);</span>
+<span class="nc" id="L409">        } catch (IOException e) {</span>
+<span class="nc" id="L410">            final String message = &quot;Could not build README html file &quot; + readmeFile;</span>
+<span class="nc" id="L411">            getLog().error(message, e);</span>
+<span class="nc" id="L412">            throw new MojoExecutionException(message, e);</span>
+<span class="fc" id="L413">        }</span>
+<span class="fc" id="L414">        headerAndReadmeFiles.add(readmeFile);</span>
+<span class="fc" id="L415">        headerAndReadmeFiles.addAll(copyHeaderAndReadmeToSubdirectories(headerFile, readmeFile));</span>
+<span class="fc" id="L416">        return headerAndReadmeFiles;</span>
+    }
+
+    /**
+     * Copies &lt;code&gt;README.html&lt;/code&gt; and &lt;code&gt;HEADER.html&lt;/code&gt; to the source and binaries
+     * directories.
+     *
+     * @param headerFile The originally created &lt;code&gt;HEADER.html&lt;/code&gt; file.
+     * @param readmeFile The originally created &lt;code&gt;README.html&lt;/code&gt; file.
+     * @return a {@link List} of created files.
+     * @throws MojoExecutionException if the {@link SharedFunctions#copyFile(Log, File, File)}
+     *                                fails.
+     */
+    private List&lt;File&gt; copyHeaderAndReadmeToSubdirectories(File headerFile, File readmeFile)
+            throws MojoExecutionException {
+<span class="fc" id="L431">        List&lt;File&gt; symbolicLinkFiles = new ArrayList&lt;&gt;();</span>
+<span class="fc" id="L432">        File sourceRoot = new File(distVersionRcVersionDirectory, &quot;source&quot;);</span>
+<span class="fc" id="L433">        File binariesRoot = new File(distVersionRcVersionDirectory, &quot;binaries&quot;);</span>
+<span class="fc" id="L434">        File sourceHeaderFile = new File(sourceRoot, HEADER_FILE_NAME);</span>
+<span class="fc" id="L435">        File sourceReadmeFile = new File(sourceRoot, README_FILE_NAME);</span>
+<span class="fc" id="L436">        File binariesHeaderFile = new File(binariesRoot, HEADER_FILE_NAME);</span>
+<span class="fc" id="L437">        File binariesReadmeFile = new File(binariesRoot, README_FILE_NAME);</span>
+<span class="fc" id="L438">        SharedFunctions.copyFile(getLog(), headerFile, sourceHeaderFile);</span>
+<span class="fc" id="L439">        symbolicLinkFiles.add(sourceHeaderFile);</span>
+<span class="fc" id="L440">        SharedFunctions.copyFile(getLog(), readmeFile, sourceReadmeFile);</span>
+<span class="fc" id="L441">        symbolicLinkFiles.add(sourceReadmeFile);</span>
+<span class="fc" id="L442">        SharedFunctions.copyFile(getLog(), headerFile, binariesHeaderFile);</span>
+<span class="fc" id="L443">        symbolicLinkFiles.add(binariesHeaderFile);</span>
+<span class="fc" id="L444">        SharedFunctions.copyFile(getLog(), readmeFile, binariesReadmeFile);</span>
+<span class="fc" id="L445">        symbolicLinkFiles.add(binariesReadmeFile);</span>
+<span class="fc" id="L446">        return symbolicLinkFiles;</span>
+    }
+
+    /**
+     * This method is the setter for the {@link CommonsDistributionStagingMojo#baseDir} field, specifically
+     * for the usage in the unit tests.
+     *
+     * @param baseDir is the {@link File} to be used as the project's root directory when this mojo
+     *                is invoked.
+     */
+    protected void setBaseDir(File baseDir) {
+<span class="fc" id="L457">        this.baseDir = baseDir;</span>
+<span class="fc" id="L458">    }</span>
+}
+</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.0.201801022044</span></div></body></html>
\ No newline at end of file

Added: dev/commons/commons-release-plugin/1.4-RC1/site/jacoco/org.apache.commons.release.plugin.mojos/CommonsSiteCompressionMojo.html
==============================================================================
--- dev/commons/commons-release-plugin/1.4-RC1/site/jacoco/org.apache.commons.release.plugin.mojos/CommonsSiteCompressionMojo.html (added)
+++ dev/commons/commons-release-plugin/1.4-RC1/site/jacoco/org.apache.commons.release.plugin.mojos/CommonsSiteCompressionMojo.html Sat Aug 25 01:39:02 2018
@@ -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>CommonsSiteCompressionMojo</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> &gt; <a href="index.html" class="el_package">org.apache.commons.release.plugin.mojos</a> &gt; <span class="el_class">CommonsSiteCompressionMojo</span></div><h1>CommonsSiteCompressionMojo<
 /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">42 of 197</td><td class="ctr2">78%</td><td class="bar">4 of 16</td><td cl
 ass="ctr2">75%</td><td class="ctr1">4</td><td class="ctr2">13</td><td class="ctr1">9</td><td class="ctr2">42</td><td class="ctr1">0</td><td class="ctr2">5</td></tr></tfoot><tbody><tr><td id="a2"><a href="CommonsSiteCompressionMojo.java.html#L100" class="el_method">execute()</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="51" height="10" title="38" alt="38"/><img src="../jacoco-resources/greenbar.gif" width="68" height="10" title="51" alt="51"/></td><td class="ctr2" id="c4">57%</td><td class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="30" height="10" title="2" alt="2"/><img src="../jacoco-resources/greenbar.gif" width="90" height="10" title="6" alt="6"/></td><td class="ctr2" id="e0">75%</td><td class="ctr1" id="f0">2</td><td class="ctr2" id="g0">5</td><td class="ctr1" id="h0">8</td><td class="ctr2" id="i0">21</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a3"><a href="CommonsSiteCompressionMojo.ja
 va.html#L140" class="el_method">getAllSiteFiles(File, List)</a></td><td class="bar" id="b1"><img src="../jacoco-resources/redbar.gif" width="5" height="10" title="4" alt="4"/><img src="../jacoco-resources/greenbar.gif" width="36" height="10" title="27" alt="27"/></td><td class="ctr2" id="c3">87%</td><td class="bar" id="d1"><img src="../jacoco-resources/redbar.gif" width="15" height="10" title="1" alt="1"/><img src="../jacoco-resources/greenbar.gif" width="45" height="10" title="3" alt="3"/></td><td class="ctr2" id="e1">75%</td><td class="ctr1" id="f1">1</td><td class="ctr2" id="g1">3</td><td class="ctr1" id="h1">1</td><td class="ctr2" id="i3">6</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a4"><a href="CommonsSiteCompressionMojo.java.html#L161" class="el_method">writeZipFile(File, File, List)</a></td><td class="bar" id="b2"><img src="../jacoco-resources/greenbar.gif" width="56" height="10" title="42" alt="42"/></td><td class="ctr2" id="c0">100%</
 td><td class="bar" id="d2"><img src="../jacoco-resources/redbar.gif" width="15" height="10" title="1" alt="1"/><img src="../jacoco-resources/greenbar.gif" width="45" height="10" title="3" alt="3"/></td><td class="ctr2" id="e2">75%</td><td class="ctr1" id="f2">1</td><td class="ctr2" id="g2">3</td><td class="ctr1" id="h2">0</td><td class="ctr2" id="i1">7</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a0"><a href="CommonsSiteCompressionMojo.java.html#L182" class="el_method">addToZip(File, File, ZipOutputStream)</a></td><td class="bar" id="b3"><img src="../jacoco-resources/greenbar.gif" width="43" height="10" title="32" alt="32"/></td><td class="ctr2" id="c1">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">7</td><td class="ctr1" id="j3">0</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a1"><a href="CommonsSiteCom
 pressionMojo.java.html#L53" class="el_method">CommonsSiteCompressionMojo()</a></td><td class="bar" id="b4"><img src="../jacoco-resources/greenbar.gif" width="4" height="10" title="3" alt="3"/></td><td class="ctr2" id="c2">100%</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="h4">0</td><td class="ctr2" id="i4">1</td><td class="ctr1" id="j4">0</td><td class="ctr2" id="k4">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.0.201801022044</span></div></body></html>
\ No newline at end of file

Added: dev/commons/commons-release-plugin/1.4-RC1/site/jacoco/org.apache.commons.release.plugin.mojos/CommonsSiteCompressionMojo.java.html
==============================================================================
--- dev/commons/commons-release-plugin/1.4-RC1/site/jacoco/org.apache.commons.release.plugin.mojos/CommonsSiteCompressionMojo.java.html (added)
+++ dev/commons/commons-release-plugin/1.4-RC1/site/jacoco/org.apache.commons.release.plugin.mojos/CommonsSiteCompressionMojo.java.html Sat Aug 25 01:39:02 2018
@@ -0,0 +1,193 @@
+<?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>CommonsSiteCompressionMojo.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> &gt; <a href="index.source.html" class="el_package">org.apache.commons.release.plugin.m
 ojos</a> &gt; <span class="el_source">CommonsSiteCompressionMojo.java</span></div><h1>CommonsSiteCompressionMojo.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 &quot;License&quot;); 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 &quot;AS IS&quot; 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 java.io.File;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.zip.ZipEntry;
+import java.util.zip.ZipOutputStream;
+
+import org.apache.commons.compress.archivers.zip.ParallelScatterZipCreator;
+import org.apache.commons.compress.archivers.zip.ScatterZipOutputStream;
+import org.apache.commons.io.IOUtils;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.plugins.annotations.LifecyclePhase;
+import org.apache.maven.plugins.annotations.Mojo;
+import org.apache.maven.plugins.annotations.Parameter;
+
+/**
+ * Takes the built &lt;code&gt;./target/site&lt;/code&gt; directory and compresses it to
+ * &lt;code&gt;./target/commons-release-plugin/site.zip&lt;/code&gt;.
+ *
+ * @author chtompki
+ * @since 1.0
+ * @deprecated - as we no longer wish to compress the site, we are going to put this functionality in the
+ *               {@link CommonsDistributionStagingMojo}.
+ */
+@Deprecated
+@Mojo(name = &quot;compress-site&quot;,
+        defaultPhase = LifecyclePhase.POST_SITE,
+        threadSafe = true,
+        aggregator = true)
+<span class="fc" id="L53">public class CommonsSiteCompressionMojo extends AbstractMojo {</span>
+
+    /**
+     * The working directory for the plugin which, assuming the maven uses the default
+     * &lt;code&gt;${project.build.directory}&lt;/code&gt;, this becomes &lt;code&gt;target/commons-release-plugin&lt;/code&gt;.
+     */
+    @Parameter(defaultValue = &quot;${project.build.directory}/commons-release-plugin&quot;,
+            property = &quot;commons.outputDirectory&quot;)
+    private File workingDirectory;
+
+    /**
+     */
+    @Parameter(defaultValue = &quot;${project.build.directory}/site&quot;, property = &quot;commons.siteOutputDirectory&quot;)
+    private File siteDirectory;
+
+    /**
+     * The url of the subversion repository to which we wish the artifacts to be staged. Typicallly
+     * this would need to be of the form:
+     * &lt;code&gt;scm:svn:https://dist.apache.org/repos/dist/dev/commons/foo&lt;/code&gt;. Note. that the prefix to the
+     * substring &lt;code&gt;https&lt;/code&gt; is a requirement.
+     */
+    @Parameter(defaultValue = &quot;&quot;, property = &quot;commons.distSvnStagingUrl&quot;)
+    private String distSvnStagingUrl;
+
+    /**
+     * A parameter to generally avoid running unless it is specifically turned on by the consuming module.
+     */
+    @Parameter(defaultValue = &quot;false&quot;, property = &quot;commons.release.isDistModule&quot;)
+    private Boolean isDistModule;
+
+    /**
+     * A variable for the process of creating the site.zip file.
+     */
+    private ScatterZipOutputStream dirs;
+
+    /**
+     * A second variable for the process of creating the site.zip file.
+     */
+    private ParallelScatterZipCreator scatterZipCreator;
+
+    /**
+     * The list of files to compress into the site.zip file.
+     */
+    private List&lt;File&gt; filesToCompress;
+
+    @Override
+    public void execute() throws MojoExecutionException, MojoFailureException {
+<span class="pc bpc" id="L100" title="1 of 2 branches missed.">        if (!isDistModule) {</span>
+<span class="nc" id="L101">            getLog().info(&quot;This module is marked as a non distribution &quot;</span>
+                    + &quot;or assembly module, and the plugin will not run.&quot;);
+<span class="nc" id="L103">            return;</span>
+        }
+<span class="pc bpc" id="L105" title="1 of 2 branches missed.">        if (StringUtils.isEmpty(distSvnStagingUrl)) {</span>
+<span class="nc" id="L106">            getLog().warn(&quot;commons.distSvnStagingUrl is not set, the commons-release-plugin will not run.&quot;);</span>
+<span class="nc" id="L107">            return;</span>
+        }
+<span class="fc bfc" id="L109" title="All 2 branches covered.">        if (!siteDirectory.exists()) {</span>
+<span class="fc" id="L110">            getLog().error(&quot;\&quot;mvn site\&quot; was not run before this goal, or a siteDirectory did not exist.&quot;);</span>
+<span class="fc" id="L111">            throw new MojoFailureException(</span>
+                    &quot;\&quot;mvn site\&quot; was not run before this goal, or a siteDirectory did not exist.&quot;
+            );
+        }
+<span class="fc bfc" id="L115" title="All 2 branches covered.">        if (!workingDirectory.exists()) {</span>
+<span class="fc" id="L116">            getLog().info(&quot;Current project contains no distributions. Not executing.&quot;);</span>
+<span class="fc" id="L117">            return;</span>
+        }
+        try {
+<span class="fc" id="L120">            filesToCompress = new ArrayList&lt;&gt;();</span>
+<span class="fc" id="L121">            getAllSiteFiles(siteDirectory, filesToCompress);</span>
+<span class="fc" id="L122">            writeZipFile(workingDirectory, siteDirectory, filesToCompress);</span>
+<span class="nc" id="L123">        } catch (IOException e) {</span>
+<span class="nc" id="L124">            getLog().error(&quot;Failed to create ./target/commons-release-plugin/site.zip: &quot; + e.getMessage(), e);</span>
+<span class="nc" id="L125">            throw new MojoExecutionException(</span>
+<span class="nc" id="L126">                    &quot;Failed to create ./target/commons-release-plugin/site.zip: &quot; + e.getMessage(),</span>
+                    e
+            );
+<span class="fc" id="L129">        }</span>
+<span class="fc" id="L130">    }</span>
+
+    /**
+     * By default this method iterates across the &lt;code&gt;target/site&lt;/code&gt; directory and adds all of the files
+     * to the {@link CommonsSiteCompressionMojo#filesToCompress} {@link List}.
+     *
+     * @param siteDirectory the {@link File} that represents the &lt;code&gt;target/site&lt;/code&gt; directory.
+     * @param filesToCompress the {@link List} to which to add all the files.
+     */
+    private void getAllSiteFiles(File siteDirectory, List&lt;File&gt; filesToCompress) {
+<span class="fc" id="L140">        File[] files = siteDirectory.listFiles();</span>
+<span class="fc bfc" id="L141" title="All 2 branches covered.">        for (File file : files) {</span>
+<span class="fc" id="L142">            filesToCompress.add(file);</span>
+<span class="pc bpc" id="L143" title="1 of 2 branches missed.">            if (file.isDirectory()) {</span>
+<span class="nc" id="L144">                getAllSiteFiles(file, filesToCompress);</span>
+            }
+        }
+<span class="fc" id="L147">    }</span>
+
+    /**
+     * A helper method for writing all of the files in our &lt;code&gt;fileList&lt;/code&gt; to a &lt;code&gt;site.zip&lt;/code&gt; file
+     * in the &lt;code&gt;workingDirectory&lt;/code&gt;.
+     *
+     * @param outputDirectory is a {@link File} representing the place to put the site.zip file.
+     * @param directoryToZip is a {@link File} representing the directory of the site (normally
+     *                       &lt;code&gt;target/site&lt;/code&gt;).
+     * @param fileList the list of files to be zipped up, generally generated by
+     *                 {@link CommonsSiteCompressionMojo#getAllSiteFiles(File, List)}.
+     * @throws IOException when the copying of the files goes incorrectly.
+     */
+    private void writeZipFile(File outputDirectory, File directoryToZip, List&lt;File&gt; fileList) throws IOException {
+<span class="fc" id="L161">        try (FileOutputStream fos = new FileOutputStream(outputDirectory.getAbsolutePath() + &quot;/site.zip&quot;);</span>
+<span class="fc" id="L162">                ZipOutputStream zos = new ZipOutputStream(fos)) {</span>
+<span class="fc bfc" id="L163" title="All 2 branches covered.">            for (File file : fileList) {</span>
+<span class="pc bpc" id="L164" title="1 of 2 branches missed.">                if (!file.isDirectory()) { // we only zip files, not directories</span>
+<span class="fc" id="L165">                    addToZip(directoryToZip, file, zos);</span>
+                }
+<span class="fc" id="L167">            }</span>
+        }
+<span class="fc" id="L169">    }</span>
+
+    /**
+     * Given the &lt;code&gt;directoryToZip&lt;/code&gt; we add the &lt;code&gt;file&lt;/code&gt; to the zip archive represented by
+     * &lt;code&gt;zos&lt;/code&gt;.
+     *
+     * @param directoryToZip a {@link File} representing the directory from which the file exists that we are
+     *                       compressing. Generally this is &lt;code&gt;target/site&lt;/code&gt;.
+     * @param file a {@link File} to add to the {@link ZipOutputStream} &lt;code&gt;zos&lt;/code&gt;.
+     * @param zos the {@link ZipOutputStream} to which to add our &lt;code&gt;file&lt;/code&gt;.
+     * @throws IOException if adding the &lt;code&gt;file&lt;/code&gt; doesn't work out properly.
+     */
+    private void addToZip(File directoryToZip, File file, ZipOutputStream zos) throws IOException {
+<span class="fc" id="L182">        try (FileInputStream fis = new FileInputStream(file)) {</span>
+            // we want the zipEntry's path to be a relative path that is relative
+            // to the directory being zipped, so chop off the rest of the path
+<span class="fc" id="L185">            String zipFilePath = file.getCanonicalPath().substring(directoryToZip.getCanonicalPath().length() + 1,</span>
+<span class="fc" id="L186">                    file.getCanonicalPath().length());</span>
+<span class="fc" id="L187">            ZipEntry zipEntry = new ZipEntry(zipFilePath);</span>
+<span class="fc" id="L188">            zos.putNextEntry(zipEntry);</span>
+<span class="fc" id="L189">            IOUtils.copy(fis, zos);</span>
+        }
+<span class="fc" id="L191">    }</span>
+}
+</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.0.201801022044</span></div></body></html>
\ No newline at end of file

Added: dev/commons/commons-release-plugin/1.4-RC1/site/jacoco/org.apache.commons.release.plugin.mojos/index.html
==============================================================================
--- dev/commons/commons-release-plugin/1.4-RC1/site/jacoco/org.apache.commons.release.plugin.mojos/index.html (added)
+++ dev/commons/commons-release-plugin/1.4-RC1/site/jacoco/org.apache.commons.release.plugin.mojos/index.html Sat Aug 25 01:39:02 2018
@@ -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.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> &gt; <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">399 of 1,584</td><td class="ctr2">74%</td><td class="bar">21 of 74</td><td class="ctr2">71%</td><td class="ctr1">19</td><td class="ctr2">63</td><td class="ctr1">70</td><td class="ctr2">310</td><td class="ctr1">0</td><td class="ctr2">26</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="37" height="10" title="250" alt="250"/><img src="../jacoco-resources/greenbar.gif" width="82" height="10" title="548" alt="548"/></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">144</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k1">9</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="16" height="10" title="107" alt="107"/><img src="../jacoco-resources/greenbar.gif" width="72" height="10" title="482" alt="482"/></td><td class="ctr2" id="c0">81%</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">23</td><td class="ctr1" id="h1">23</td><td class="ctr2" id="i1">124</td><td class
 ="ctr1" id="j1">0</td><td class="ctr2" id="k0">12</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="23" 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"><spa
 n class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.0.201801022044</span></div></body></html>
\ No newline at end of file

Added: dev/commons/commons-release-plugin/1.4-RC1/site/jacoco/org.apache.commons.release.plugin.mojos/index.source.html
==============================================================================
--- dev/commons/commons-release-plugin/1.4-RC1/site/jacoco/org.apache.commons.release.plugin.mojos/index.source.html (added)
+++ dev/commons/commons-release-plugin/1.4-RC1/site/jacoco/org.apache.commons.release.plugin.mojos/index.source.html Sat Aug 25 01:39:02 2018
@@ -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.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.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> &gt; <span class="el_package">org.apache.commons.release.plugin.mojos</span></div><h1>org.apache.commons.rel
 ease.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" oncli
 ck="toggleSort(this)">Classes</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">399 of 1,584</td><td class="ctr2">74%</td><td class="bar">21 of 74</td><td class="ctr2">71%</td><td class="ctr1">19</td><td class="ctr2">63</td><td class="ctr1">70</td><td class="ctr2">310</td><td class="ctr1">0</td><td class="ctr2">26</td><td class="ctr1">0</td><td class="ctr2">3</td></tr></tfoot><tbody><tr><td id="a1"><a href="CommonsDistributionStagingMojo.java.html" class="el_source">CommonsDistributionStagingMojo.java</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="548" alt="548"/></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%</t
 d><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">144</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k1">9</td><td class="ctr1" id="l0">0</td><td class="ctr2" id="m0">1</td></tr><tr><td id="a0"><a href="CommonsDistributionDetachmentMojo.java.html" class="el_source">CommonsDistributionDetachmentMojo.java</a></td><td class="bar" id="b1"><img src="../jacoco-resources/redbar.gif" width="16" height="10" title="107" alt="107"/><img src="../jacoco-resources/greenbar.gif" width="72" height="10" title="482" alt="482"/></td><td class="ctr2" id="c0">81%</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">23</td><td class="ctr1" id="h1">23</td><td class="ctr2" id="i1">124</td>
 <td class="ctr1" id="j1">0</td><td class="ctr2" id="k0">12</td><td class="ctr1" id="l1">0</td><td class="ctr2" id="m1">1</td></tr><tr><td id="a2"><a href="CommonsSiteCompressionMojo.java.html" class="el_source">CommonsSiteCompressionMojo.java</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="23" 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 class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.0.201801022044</span></div></body></html>
\ No newline at end of file

Added: dev/commons/commons-release-plugin/1.4-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/HeaderHtmlVelocityDelegate$HeaderHtmlVelocityDelegateBuilder.html
==============================================================================
--- dev/commons/commons-release-plugin/1.4-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/HeaderHtmlVelocityDelegate$HeaderHtmlVelocityDelegateBuilder.html (added)
+++ dev/commons/commons-release-plugin/1.4-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/HeaderHtmlVelocityDelegate$HeaderHtmlVelocityDelegateBuilder.html Sat Aug 25 01:39:02 2018
@@ -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.HeaderHtmlVelocityDelegateBuilder</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> &gt; <a href="index.html" class="el_package">org.apache.commons.release.plugin.velocity</a> &gt; <span class="el_class">HeaderHtmlVelocityDelegate.Header
 HtmlVelocityDelegateBuilder</span></div><h1>HeaderHtmlVelocityDelegate.HeaderHtmlVelocityDelegateBuilder</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 5</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">1</td><td class="ctr1">0</td><td class="ctr2">1</td><td class="ctr1">0</td><td class="ctr2">1</td></tr></tfoot><tbody><tr><td id="a0"><a href="HeaderHtmlVelocityDelegate.java.html#L85" class="el_method">build()</a></td><td class="bar" id="b0"><img src="../jacoco-resources/greenbar.gif" width="120" height="10" title="5" alt="5"/></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">1</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k0">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.0.201801022044</span></div></body></html>
\ No newline at end of file

Added: dev/commons/commons-release-plugin/1.4-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/HeaderHtmlVelocityDelegate.html
==============================================================================
--- dev/commons/commons-release-plugin/1.4-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/HeaderHtmlVelocityDelegate.html (added)
+++ dev/commons/commons-release-plugin/1.4-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/HeaderHtmlVelocityDelegate.html Sat Aug 25 01:39:02 2018
@@ -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> &gt; <a href="index.html" class="el_package">org.apache.commons.release.plugin.velocity</a> &gt; <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.0.201801022044</span></div></body></html>
\ No newline at end of file

Added: dev/commons/commons-release-plugin/1.4-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/HeaderHtmlVelocityDelegate.java.html
==============================================================================
--- dev/commons/commons-release-plugin/1.4-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/HeaderHtmlVelocityDelegate.java.html (added)
+++ dev/commons/commons-release-plugin/1.4-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/HeaderHtmlVelocityDelegate.java.html Sat Aug 25 01:39:02 2018
@@ -0,0 +1,89 @@
+<?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> &gt; <a href="index.source.html" class="el_package">org.apache.commons.release.plugin.v
 elocity</a> &gt; <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 &quot;License&quot;); 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 &quot;AS IS&quot; 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 &lt;code&gt;HEADER.html&lt;/code&gt; that moves along with the
+ * release for the sake of downloading the release from the distribution area.
+ *
+ * @author chtompki
+ * @since 1.3
+ */
+public class HeaderHtmlVelocityDelegate {
+    /** The location of the velocity tempate for this class. */
+    private static final String TEMPLATE = &quot;resources/org/apache/commons/release/plugin&quot;
+                                         + &quot;/velocity/HEADER.vm&quot;;
+    /** The private constructor to be used by the {@link HeaderHtmlVelocityDelegateBuilder}. */
+    private HeaderHtmlVelocityDelegate() {
+        super();
+    }
+
+    /**
+     * 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(Writer writer) {
+<span class="fc" id="L58">        VelocityEngine ve = new VelocityEngine();</span>
+<span class="fc" id="L59">        ve.setProperty(RuntimeConstants.RESOURCE_LOADER, &quot;classpath&quot;);</span>
+<span class="fc" id="L60">        ve.setProperty(&quot;classpath.resource.loader.class&quot;, ClasspathResourceLoader.class.getName());</span>
+<span class="fc" id="L61">        ve.init();</span>
+<span class="fc" id="L62">        Template template = ve.getTemplate(TEMPLATE);</span>
+<span class="fc" id="L63">        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() {
+            super();
+        }
+
+        /**
+         * Builds up the {@link ReadmeHtmlVelocityDelegate} from the previously set parameters.
+         * @return a new {@link ReadmeHtmlVelocityDelegate}.
+         */
+        public HeaderHtmlVelocityDelegate build() {
+<span class="fc" id="L85">            return new HeaderHtmlVelocityDelegate();</span>
+        }
+    }
+}
+</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.0.201801022044</span></div></body></html>
\ No newline at end of file

Added: dev/commons/commons-release-plugin/1.4-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/ReadmeHtmlVelocityDelegate$ReadmeHtmlVelocityDelegateBuilder.html
==============================================================================
--- dev/commons/commons-release-plugin/1.4-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/ReadmeHtmlVelocityDelegate$ReadmeHtmlVelocityDelegateBuilder.html (added)
+++ dev/commons/commons-release-plugin/1.4-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/ReadmeHtmlVelocityDelegate$ReadmeHtmlVelocityDelegateBuilder.html Sat Aug 25 01:39:02 2018
@@ -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> &gt; <a href="index.html" class="el_package">org.apache.commons.release.plugin.velocity</a> &gt; <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#L151" 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#L122" 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#L132" 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#L142" 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.0.201801022044</span></div></body></html>
\ No newline at end of file

Added: dev/commons/commons-release-plugin/1.4-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/ReadmeHtmlVelocityDelegate.html
==============================================================================
--- dev/commons/commons-release-plugin/1.4-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/ReadmeHtmlVelocityDelegate.html (added)
+++ dev/commons/commons-release-plugin/1.4-RC1/site/jacoco/org.apache.commons.release.plugin.velocity/ReadmeHtmlVelocityDelegate.html Sat Aug 25 01:39:02 2018
@@ -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> &gt; <a href="index.html" class="el_package">org.apache.commons.release.plugin.velocity</a> &gt; <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 101</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">3</td><td class="ctr1">0</td><td class="ctr2">25</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="84" alt="84"/></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">19</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, String)</a></td><td class="bar" id="b1"><img src="../jacoco-resources/greenbar.gif" width="17" height="10" title="12" alt="12"/></td><td class="ctr2" id="c1">100%</td><td class="b
 ar" 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="7" 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.0.201801022044</span></div></body></html>
\ No newline at end of file