Repository: commons-release-plugin Updated Branches: refs/heads/master 6491f51f4 -> 76d8739d0
Don't hide class' ivar name. Project: http://git-wip-us.apache.org/repos/asf/commons-release-plugin/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-release-plugin/commit/76d8739d Tree: http://git-wip-us.apache.org/repos/asf/commons-release-plugin/tree/76d8739d Diff: http://git-wip-us.apache.org/repos/asf/commons-release-plugin/diff/76d8739d Branch: refs/heads/master Commit: 76d8739d09ea796e4230f2ba52ebd96514df3f4e Parents: 6491f51 Author: Gary Gregory <garydgreg...@gmail.com> Authored: Wed May 30 11:30:16 2018 -0600 Committer: Gary Gregory <garydgreg...@gmail.com> Committed: Wed May 30 11:30:16 2018 -0600 ---------------------------------------------------------------------- .../release/plugin/mojos/CommonsSiteCompressionMojo.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-release-plugin/blob/76d8739d/src/main/java/org/apache/commons/release/plugin/mojos/CommonsSiteCompressionMojo.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/release/plugin/mojos/CommonsSiteCompressionMojo.java b/src/main/java/org/apache/commons/release/plugin/mojos/CommonsSiteCompressionMojo.java index 74983f1..1cd4e63 100755 --- a/src/main/java/org/apache/commons/release/plugin/mojos/CommonsSiteCompressionMojo.java +++ b/src/main/java/org/apache/commons/release/plugin/mojos/CommonsSiteCompressionMojo.java @@ -147,15 +147,15 @@ public class CommonsSiteCompressionMojo extends AbstractMojo { * A helper method for writing all of the files in our <code>fileList</code> to a <code>site.zip</code> file * in the <code>workingDirectory</code>. * - * @param workingDirectory is a {@link File} representing the place to put the site.zip file. + * @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 * <code>target/site</code>). * @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 workingDirectory, File directoryToZip, List<File> fileList) throws IOException { - try (FileOutputStream fos = new FileOutputStream(workingDirectory.getAbsolutePath() + "/site.zip"); + private void writeZipFile(File outputDirectory, File directoryToZip, List<File> fileList) throws IOException { + try (FileOutputStream fos = new FileOutputStream(outputDirectory.getAbsolutePath() + "/site.zip"); ZipOutputStream zos = new ZipOutputStream(fos)) { for (File file : fileList) { if (!file.isDirectory()) { // we only zip files, not directories