コード例 #1
0
        public void Build(GeneralTree<IDirectoryTreeNode> features)
        {
            if (log.IsInfoEnabled)
            {
                log.InfoFormat("Writing DHTML files to {0}", this.configuration.OutputFolder.FullName);
            }

            var resource = new DhtmlResourceSet(configuration);

            log.Info("DeployZippedDhtmlResourcesForExtraction");
            DeployZippedDhtmlResourcesForExtraction(resource);

            log.Info("UnzipDhtmlResources");
            UnzipDhtmlResources(resource);
            
            log.Info("UtilizeJsonBuilderToDumpJsonFeatureFileNextToDthmlResources");
            UtilizeJsonBuilderToDumpJsonFeatureFileNextToDthmlResources(features);

            log.Info("Tweak Json file");
            TweakJsonFile();

            log.Info("CleanupZippedDhtmlResources");
            CleanupZippedDhtmlResources(resource);

        }
コード例 #2
0
        public void Build(GeneralTree <INode> features)
        {
            if (log.IsInfoEnabled)
            {
                log.Info("Writing DHTML files to {0}", this.configuration.OutputFolder.FullName);
            }

            var resource = new DhtmlResourceSet(configuration, this.fileSystem);

            log.Info("DeployZippedDhtmlResourcesForExtraction");
            DeployZippedDhtmlResourcesForExtraction(resource);

            log.Info("UnzipDhtmlResources");
            UnzipDhtmlResources(resource);

            log.Info("UtilizeJsonBuilderToDumpJsonFeatureFileNextToDthmlResources");
            UtilizeJsonBuilderToDumpJsonFeatureFileNextToDthmlResources(features);

            log.Info("Tweak Json file");
            TweakJsonFile();

            log.Info("CleanupZippedDhtmlResources");
            CleanupZippedDhtmlResources(resource);
        }
コード例 #3
0
 private void DeployZippedDhtmlResourcesForExtraction(DhtmlResourceSet dhtmlResourceSet)
 {
     var resourceProcessor = new DhtmlResourceProcessor(configuration, dhtmlResourceSet, this.fileSystem);
     resourceProcessor.WriteZippedResources();
 }
コード例 #4
0
 private void CleanupZippedDhtmlResources(DhtmlResourceSet dhtmlResourceSet)
 {
     var resourceProcessor = new DhtmlResourceProcessor(configuration, dhtmlResourceSet, this.fileSystem);
     resourceProcessor.CleanupZippedResources();
 }
コード例 #5
0
 private void UnzipDhtmlResources(DhtmlResourceSet dhtmlResourceSet)
 {
     var unzipper = new UnZipper(this.fileSystem);
     unzipper.UnZip(dhtmlResourceSet.ZippedResources.LocalPath, configuration.OutputFolder.FullName, "Pickles.BaseDhtmlFiles");
 }
コード例 #6
0
 public DhtmlResourceProcessor(Configuration configuration, DhtmlResourceSet dhtmlResourceSet, IFileSystem fileSystem)
 {
     this.MyConfiguration    = configuration;
     this.fileSystem         = fileSystem;
     this.MyDhtmlResourceSet = dhtmlResourceSet;
 }
コード例 #7
0
        private void DeployZippedDhtmlResourcesForExtraction(DhtmlResourceSet dhtmlResourceSet)
        {
            var resourceProcessor = new DhtmlResourceProcessor(configuration, dhtmlResourceSet, this.fileSystem);

            resourceProcessor.WriteZippedResources();
        }
コード例 #8
0
        private void CleanupZippedDhtmlResources(DhtmlResourceSet dhtmlResourceSet)
        {
            var resourceProcessor = new DhtmlResourceProcessor(configuration, dhtmlResourceSet, this.fileSystem);

            resourceProcessor.CleanupZippedResources();
        }
コード例 #9
0
        private void UnzipDhtmlResources(DhtmlResourceSet dhtmlResourceSet)
        {
            var unzipper = new UnZipper(this.fileSystem);

            unzipper.UnZip(dhtmlResourceSet.ZippedResources.LocalPath, configuration.OutputFolder.FullName, "Pickles.BaseDhtmlFiles");
        }
コード例 #10
0
 public DhtmlResourceProcessor(Configuration configuration, DhtmlResourceSet dhtmlResourceSet)
 {
     this.MyConfiguration = configuration;
     this.MyDhtmlResourceSet = dhtmlResourceSet;
 }
コード例 #11
0
 public DhtmlResourceProcessor(Configuration configuration, DhtmlResourceSet dhtmlResourceSet, IFileSystem fileSystem)
 {
     this.MyConfiguration = configuration;
     this.fileSystem = fileSystem;
     this.MyDhtmlResourceSet = dhtmlResourceSet;
 }
コード例 #12
0
 private void UnzipDhtmlResources(DhtmlResourceSet dhtmlResourceSet)
 {
     var unzipper = new UnZipper();
     unzipper.UnZip(dhtmlResourceSet.ZippedResources.AbsolutePath, configuration.OutputFolder.FullName, "Pickles.BaseDhtmlFiles");
 }