示例#1
0
 public BuildConfiguration(IServerPath ggpApprovalSystemSourceCodeFolder,
                           Optional <ILocalPath> installerRootDeliveryFolder,
                           BuildTaskInfo buildTaskInfo,
                           ISourceControlAdapter sourceControlAdapter)
 {
     this.GGPApprovalSystemSourceCodeFolder = ggpApprovalSystemSourceCodeFolder;
     _installerRootDeliveryFolder           = installerRootDeliveryFolder;
     _buildTaskInfo        = buildTaskInfo;
     _sourceControlAdapter = sourceControlAdapter;
 }
示例#2
0
 public InstallerBuildContext(ILoggerFactory loggerFactory,
                              IFileSystemAdapter fileSystemAdapter,
                              ISourceControlAdapter sourceControlAdapter,
                              IBuildConfiguration buildConfiguration)
 {
     this.Logger               = loggerFactory.CreateLogger(this.GetType());
     this.FileSystemAdapter    = fileSystemAdapter;
     this.SourceControlAdapter = sourceControlAdapter;
     this.BuildConfiguration   = buildConfiguration;
 }
示例#3
0
 public BuildContext(IBuildServices services,
                     IBuildConfiguration buildConfiguration,
                     IDeploymentContentBuilder deploymentContentBuilder,
                     ISourceControlAdapter sourceControlAdapter)
 {
     this.Services                 = services;
     this.Logger                   = services.LoggerFactory.CreateLogger(this.GetType());
     this.BuildConfiguration       = buildConfiguration;
     this.DeploymentContentBuilder = deploymentContentBuilder;
     this.ApprovalSystemAdapter    = services.CreateApprovalSystemAdapter();
     this.SourceControlAdapter     = sourceControlAdapter;
     this.FileSystemAdapter        = new FileSystemAdapter(services.OperatingSystemServices.FileSystem);
 }
示例#4
0
        private IBuildConfiguration GetBuildConfiguration(ISourceControlAdapter sourceControlAdapter,
                                                          ComponentsFolder componentsFolder)
        {
            var buildOutputFolder = componentsFolder
                                    .Core
                                    .GGPBootstrapper
                                    .ToSourceControlFolder()
                                    .GetLocalPath()
                                    .Subpath("bin")
                                    .Subpath("Release");

            var distributionServerPath = sourceControlAdapter.CreateServerPath(_distributionFolderServerPath)
                                         .Subpath(_ggpBranchName.ToString());

            var distributionLocalPath = sourceControlAdapter.GetLocalPathFromServerPath(distributionServerPath);


            var solutionFile = componentsFolder.GGPGameServerSln.ToSourceControlFile().GetLocalPath();

            return(new BuildConfiguration(buildOutputFolder,
                                          distributionLocalPath,
                                          distributionServerPath,
                                          solutionFile));
        }
示例#5
0
 public InstallerDefinitionReader(ISourceControlAdapter sourceControlAdapter)
 {
     _sourceControlAdapter = sourceControlAdapter;
 }