コード例 #1
0
ファイル: PackageBundler.cs プロジェクト: whiteneutron/prime
        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();
        }
コード例 #2
0
ファイル: PackageFiller.cs プロジェクト: whiteneutron/prime
 public PackageFiller(PublishManager publishManager)
 {
     _publishManager = publishManager;
 }