public void read_a_package_manifest() { theOriginal = new ApplicationManifest { Name = "Han Solo", ContentFileSet = new FileSet() { DeepSearch = true, Exclude = "*.xml", Include = "*.config" }, DataFileSet = new FileSet() { DeepSearch = true, Exclude = "*.txt", Include = "*.xml" } }; theOriginal.AddAssembly("Fubu.Assem1"); theOriginal.AddAssembly("Fubu.Assem2"); theOriginal.AddAssembly("Fubu.Assem3"); new FileSystem().WriteObjectToFile("manifest.xml", theOriginal); var reader = new PackageManifestXmlReader(); theResultingManifest = reader.ReadFrom("manifest.xml"); }
public virtual void CreatePackage(CreatePackageInput input, IFileSystem fileSystem) { var fileName = FileSystem.Combine(input.PackageFolder, input.ManifestFileNameFlag ?? PackageManifest.FILE); var reader = new PackageManifestXmlReader(); var manifest = reader.ReadFrom(fileName); var creator = new PackageCreator(fileSystem, new ZipFileService(fileSystem), new PackageLogger(), new AssemblyFileFinder(new FileSystem())); creator.CreatePackage(input, manifest); }