Exemplo n.º 1
0
        public PackageBundler(PublishManager publishManager, string projectKey, string projectPath)
        {
            SevenZipNativeLibrary.Install();

            _publishManager = publishManager;
            ProjectKey      = projectKey;
            ProjectPath     = projectPath;
            _context        = publishManager.Context;
            L = _context.L;

            SetUpDirectories();

            var dirPath = Path.Combine(_context.SourcePath, ProjectPath);

            if (!Directory.Exists(dirPath))
            {
                L.Info("No project path for " + ProjectKey + " @ " + dirPath);
                return;
            }

            SourceDirectory = new DirectoryInfo(dirPath);
            Files           = SourceDirectory.GetFiles("*", SearchOption.AllDirectories).ToList();
        }
Exemplo n.º 2
0
 public PackageFiller(PublishManager publishManager)
 {
     _publishManager = publishManager;
 }