use of com.thoughtworks.go.domain.materials.svn.SvnExternal in project gocd by gocd.
the class MaterialExpansionService method expandExternals.
private void expandExternals(MaterialConfig configuredMaterial, MaterialConfigs expandedMaterials) {
SvnMaterialConfig svnMaterialConfig = (SvnMaterialConfig) configuredMaterial;
if (!svnMaterialConfig.isCheckExternals()) {
return;
}
List<SvnExternal> urLs = svn(svnMaterialConfig).getAllExternalURLs();
for (SvnExternal externalUrl : urLs) {
SvnMaterialConfig svnMaterial = new SvnMaterialConfig();
svnMaterial.setUrl(externalUrl.getURL());
svnMaterial.setUserName(svnMaterialConfig.getUserName());
svnMaterial.setPassword(svnMaterialConfig.getPassword());
svnMaterial.setCheckExternals(true);
svnMaterial.setFolder(svnMaterialConfig.folderFor(externalUrl.getFolder()));
svnMaterial.setFilter(svnMaterialConfig.filter());
expandedMaterials.add(svnMaterial);
}
}
Aggregations