for (Entry e : localResourcesSelector.select(applicationDir != null ? applicationDir : "/")) {
withHdfs.hdfs(e.getPath(), e.getType(), applicationDir == null);
}
if (syap.getContainercluster() != null && localResourcesSelector instanceof MultiLocalResourcesSelector && syap.getContainercluster().getClusters() != null) {
MultiLocalResourcesSelector selector = ((MultiLocalResourcesSelector)localResourcesSelector);
for (java.util.Map.Entry<String, ContainerClustersProperties> entry : syap.getContainercluster().getClusters().entrySet()) {
withHdfs = localizer.withHdfs(entry.getKey());
for (Entry e : selector.select(entry.getKey(), applicationDir != null ? applicationDir : "/")) {
withHdfs.hdfs(e.getPath(), e.getType(), applicationDir == null);
}
}
}
}