예제 #1
0
 public DeploymentMappings Read(string teamProjectName, IBuildData teamBuild)
 {
     TraceHelper.TraceInformation(TraceSwitches.TfsDeployer, "Reading Configuration for Team Projet:{0} Team Build:{1}", teamProjectName, teamBuild.BuildType);
     TfsHelper.GetSharedResources();
     _workingDirectory = TfsHelper.GetDeploymentItems(teamProjectName, teamBuild.BuildType);
     return(ConfigurationReaderHelper.Read(Path.Combine(_workingDirectory, ConfigurationFileName)));;
 }
예제 #2
0
        public IEnumerable <Mapping> ReadMappings(string teamProjectName, IBuildData teamBuild, IWorkingDirectory workingDirectory)
        {
            TraceHelper.TraceInformation(TraceSwitches.TfsDeployer, "Reading Configuration for Team Project: {0} Team Build: {1}", teamProjectName, teamBuild.BuildType);
            TfsHelper.GetSharedResources(workingDirectory);
            _workingDirectory = TfsHelper.GetDeploymentItems(teamProjectName, teamBuild.BuildType, workingDirectory);
            var configuration = ConfigurationReaderHelper.Read(Path.Combine(_workingDirectory, ConfigurationFileName));

            if (configuration == null)
            {
                return(new Mapping[0]);
            }
            return(configuration.Mappings);
        }