Ejemplo n.º 1
0
        public byte[] ExtractArtefact(Ref.AssemblyArtifact art)
        {
            int i;

            Build.BuildResultFile res;
            if ((i = Version.Artefacts.IndexOf(art)) < 0)
            {
                throw new Exception("artefact not present");
            }

            if (Container.GetSpecificVersionArtefact(Version.VersionTag, art.FileName, out res))
            {
            }
            else
            {
                logger.Error("error while artefact extraction: tag: {0}, file:{0}", Version.VersionTag, art.FileName);
                return(null);
            }
            return(res.Data);
        }