Skip to content
Permalink
Browse files
Don't hide class' ivar name.
  • Loading branch information
garydgregory committed May 30, 2018
1 parent 6491f51 commit 76d8739d09ea796e4230f2ba52ebd96514df3f4e
Showing 1 changed file with 3 additions and 3 deletions.
@@ -147,15 +147,15 @@ private void getAllSiteFiles(File siteDirectory, List<File> filesToCompress) {
* 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

0 comments on commit 76d8739

Please sign in to comment.