public void AddFile(string container, string sourcePath, string targetName) { string fullPath = IO.Path.GetFullPath(sourcePath); Swix root = new Swix( new File(fullPath, targetName) ); root.LineNumber = new FileLineNumber(fullPath, 0, 0); this.roots.Add(root); }
private void AddSystemPackage() { Swix root = new Swix( new Group(true, "System", new Folder(true, "ApplicationFolder"), new Folder(true, "DesktopFolder"), new Folder(true, "GacFolder"), new Folder(true, "InstallFolder"), new Folder(true, "ProgramFilesFolder"), new Folder(true, "StartMenuFolder"), new Folder(true, "SystemFolder") )); root.LineNumber = new FileLineNumber("System", 0, 0); this.AddRoot(root); }
public void AddRoot(Swix root) { this.AddItems(root.LineNumber, root.Items); this.roots.Add(root); }