Skip to content
Permalink
Browse files
COMMONSSITE-122: stage-distributions mojo assumes site directory has …
…basename 'site'
  • Loading branch information
mbenson committed Aug 29, 2018
1 parent d584fab commit 7505912b803ad4394ceb4ef70dd866d20b2627e5
Showing 1 changed file with 2 additions and 2 deletions.
@@ -352,12 +352,12 @@ private List<File> copySiteToScmDirectory() throws MojoExecutionException {
"\"mvn site\" was not run before this goal, or a siteDirectory did not exist."
);
}
File siteInScm = new File(distVersionRcVersionDirectory, "site");
try {
FileUtils.copyDirectoryToDirectory(siteDirectory, distVersionRcVersionDirectory);
FileUtils.copyDirectory(siteDirectory, siteInScm);
} catch (IOException e) {
throw new MojoExecutionException("Site copying failed", e);
}
File siteInScm = new File(distVersionRcVersionDirectory, "site");
return new ArrayList<>(FileUtils.listFiles(siteInScm, null, true));
}

0 comments on commit 7505912

Please sign in to comment.