use of org.apache.maven.plugins.assembly.InvalidAssemblerConfigurationException in project maven-plugins by apache.
the class DefaultAssemblyReader method includeSiteInAssembly.
@Override
public void includeSiteInAssembly(final Assembly assembly, final AssemblerConfigurationSource configSource) throws InvalidAssemblerConfigurationException {
final File siteDirectory = configSource.getSiteDirectory();
if (!siteDirectory.exists()) {
throw new InvalidAssemblerConfigurationException("site did not exist in the target directory - " + "please run site:site before creating the assembly");
}
getLogger().info("Adding site directory to assembly : " + siteDirectory);
final FileSet siteFileSet = new FileSet();
siteFileSet.setDirectory(siteDirectory.getPath());
siteFileSet.setOutputDirectory("/site");
assembly.addFileSet(siteFileSet);
}
Aggregations