}
private ResolveOptions newResolveOptions(String[] confs, String revision, File cache,
Date date, boolean validate, boolean useCacheOnly, boolean transitive,
boolean useOrigin, boolean download, boolean outputReport, Filter artifactFilter) {
return new ResolveOptions().setConfs(confs).setRevision(revision).setCache(
ivy.getCacheManager(cache == null ? ivy.getSettings().getDefaultCache() : cache))
.setValidate(validate).setUseCacheOnly(useCacheOnly).setTransitive(transitive)
.setUseOrigin(useOrigin).setDownload(download).setOutputReport(outputReport)
.setArtifactFilter(artifactFilter);
}