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(); }
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]); } } } } }
public VulcanEngine(string templateFolder, string dimensionFolder) { _templateManager = new Templates.TemplateManager(templateFolder); _dimensionsHelper = new Dimensions.DimensionHelper(dimensionFolder, _templateManager); }