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);
}
}