}
// Alfresco configuration files
// Mapped from configured resources to their respective target paths
getLog().info("Adding configuration files");
MavenResourcesExecution resourcesExecution;
File targetConfigDirectory = new File(targetDirectory, "config");
targetConfigDirectory.mkdir();
try {
if (StringUtils.isEmpty(encoding)) {
getLog().warn(
"File encoding has not been set, using platform encoding " + ReaderFactory.FILE_ENCODING
+ ", i.e. build is platform dependent!");
}
resourcesExecution = new MavenResourcesExecution(project.getResources(), targetConfigDirectory, project,
encoding, null, Collections.<String> emptyList(), session);
resourcesFiltering.filterResources(resourcesExecution);
} catch (MavenFilteringException e) {
throw new MojoExecutionException("Could not filter resources", e);
}