private ServerDetails createInitialDeployDetailsFromOldDeployDetails ( ServerDetails oldDeployerDetails ) { RepositoryConf oldDeployRepositoryConfig = oldDeployerDetails . getDeployReleaseRepository ( ) ; RepositoryConf oldSnapshotDeployRepositoryConfig = oldDeployerDetails . getDeploySnapshotRepository ( ) ; RepositoryConf deployReleaseRepos = oldDeployRepositoryConfig == null ? RepositoryConf . emptyRepositoryConfig : oldDeployRepositoryConfig ; RepositoryConf deploySnapshotRepos = oldSnapshotDeployRepositoryConfig == null ? RepositoryConf . emptyRepositoryConfig : oldSnapshotDeployRepositoryConfig ; return new ServerDetails ( oldDeployerDetails . getArtifactoryName ( ) , oldDeployerDetails . getArtifactoryUrl ( ) , deployReleaseRepos , deploySnapshotRepos , null , null , null , null ) ; }
Creates a new ServerDetails object for deployer this will take URL and name from the oldDeployer ServerDetails