protected virtual void RetrieveSourceCode(IBuildMetaData buildMetaData, IPackageTree componentTree) { ExecuteRepositoryElementList(buildMetaData, componentTree); ExecuteExportList(buildMetaData, componentTree); if (buildMetaData.SourceControl == null) { return; } log.InfoFormat("\nHorn is fetching {0}.\n\n".ToUpper(), buildMetaData.SourceControl.Url); get.From(buildMetaData.SourceControl).ExportTo(componentTree); }
public virtual IRepositoryElement PrepareRepository(IPackageTree packageToExportTo, IGet get) { packageTreeToExportTo = packageToExportTo; var root = packageToExportTo.Root; var buildMetaData = root.GetBuildMetaData(RepositoryName); repositoryTree = root.RetrievePackage(RepositoryName); get.From(buildMetaData.SourceControl).ExportTo(repositoryTree); return(this); }
public virtual IRepositoryElement PrepareRepository(IPackageTree packageToExportTo, IGet get) { packageTreeToExportTo = packageToExportTo; var root = packageToExportTo.Root; var buildMetaData = root.GetBuildMetaData(RepositoryName); repositoryTree = root.RetrievePackage(RepositoryName); get.From(buildMetaData.SourceControl).ExportTo(repositoryTree); return this; }