* end up on the classpath.
*/
public void copyHTMLResourcesTo(final File targetDirectory) throws IOException {
Pattern resourcePattern = allFilesInDirectory(resourceDirectory);
FileResources fileResource = FileResources.from(resourceDirectory);
Collection<String> reportResources = ResourceList.forResources(resourcePattern).list();
for (String resourcePath : reportResources) {
if (fileResourceFromAJar(resourcePath)) {
fileResource.copyResourceTo(resourcePath, targetDirectory);
} else if (fileResourceFromPath(resourcePath)) {
fileResource.copyResourceTo(resourcePath,
targetDirectory);
}
}
}