Interface AssemblyArchiver
- All Known Implementing Classes:
DefaultAssemblyArchiver
public interface AssemblyArchiver
Creates an archive
-
Method Summary
Modifier and TypeMethodDescriptioncreateArchive
(Assembly assembly, String fullName, String format, AssemblerConfigurationSource configSource, FileTime sourceDateEpoch) Create the assembly archive.
-
Method Details
-
createArchive
File createArchive(Assembly assembly, String fullName, String format, AssemblerConfigurationSource configSource, FileTime sourceDateEpoch) throws ArchiveCreationException, AssemblyFormattingException, InvalidAssemblerConfigurationException Create the assembly archive. Generally:- Setup any directory structures for temporary files
- Calculate the output directory/file for the assembly
- Setup any handler components for special descriptor files we may encounter
- Lookup and configure the
Archiver
to be used - Determine what, if any, dependency resolution will be required, and resolve any dependency-version conflicts up front to produce a managed-version map for the whole assembly process.
- Iterate through the available
AssemblyArchiverPhase
instances, executing each to handle a different top-level section of the assembly descriptor, if that section is present.
- Parameters:
assembly
- TheAssembly
fullName
- The full name.format
- The format.configSource
- TheAssemblerConfigurationSource
sourceDateEpoch
- Timestamp for reproducible archive entries- Returns:
- The resulting archive file.
- Throws:
ArchiveCreationException
- when creation failsAssemblyFormattingException
- when formatting failsInvalidAssemblerConfigurationException
- when the configuration is bad
-