示例#1
0
        public VulcanPackage(string packageName, string packageType, VulcanConfig vulcanConfig, TemplateManager templateManager, XPathNavigator packageNavigator)
        {
            this._packageName = packageName;
            this._projectSubpath = GetSubpathFromPackageType(packageType);

            this._vulcanConfig = vulcanConfig;
            this._templateManager = templateManager;
            this._projectManager = new ProjectManager(packageName);

            _DTSApplication = new DTS.Application();
            _package = new DTS.Package();

            this._package.Name = this._packageName;
            this._packageNavigator = packageNavigator;

            this.UnSave();
        }
示例#2
0
        public DimensionHelper(string dimensionPath, TemplateManager templateManager)
        {
            Message.Trace(Severity.Debug,"Dimension Helper: Parsing Directory {0}",dimensionPath);

            foreach (string file in Directory.GetFiles(dimensionPath))
            {
                Message.Trace(Severity.Debug,"Parsing Dimensions in: {0}", file);
                VulcanConfig vulcanConfig = new VulcanConfig(file);
                foreach (XPathNavigator nav in vulcanConfig.Navigator.Select("//rc:Package", vulcanConfig.NamespaceManager))
                {
                    Message.Trace(Severity.Debug,"Found Dimensions Package {0}", nav.SelectSingleNode("@Name").Value);
                    XPathNavigator patternNavigator = nav.SelectSingleNode("rc:Patterns", vulcanConfig.NamespaceManager);
                    foreach(XPathNavigator dimNav in patternNavigator.Select("rc:Dimensions",vulcanConfig.NamespaceManager))
                    {
                        Dictionary<string,XPathNavigator> dimList = DimensionsPattern.GetDimensionsFromPackage(vulcanConfig, dimNav);
                        foreach (string s in dimList.Keys)
                        {
                            _dimDictionary.Add(s, vulcanConfig);
                            _dimNavDictionary.Add(s, dimList[s]);
                        }
                    }
                }
            }
        }
示例#3
0
文件: Vulcan.cs 项目: japj/vulcan
 public VulcanEngine(string templateFolder, string dimensionFolder)
 {
     _templateManager = new Templates.TemplateManager(templateFolder);
     _dimensionsHelper = new Dimensions.DimensionHelper(dimensionFolder, _templateManager);
 }
示例#4
0
文件: Vulcan.cs 项目: mosamy/vulcan
 public VulcanEngine(string templateFolder, string dimensionFolder)
 {
     _templateManager  = new Templates.TemplateManager(templateFolder);
     _dimensionsHelper = new Dimensions.DimensionHelper(dimensionFolder, _templateManager);
 }