public class ArchiveModuleCommand extends CommandWrapper
Below is a snippet illustrating how to use this command (see CommandRunner
for a full snippet):
ModuleRef module = ModuleRef.qualifiedName("/MyFolder/MyModule"); File archiveLocation = new File("c:\\archives\\MyModule.dma"); ArchiveModuleCommand command = new ArchiveModuleCommand(archiveLocation, module); myCommandRunner.run(command);
This class is not intended to be subclassed by clients but may be instantiated.
CommandRunner
,
RestoreModuleCommand
Constructor and Description |
---|
ArchiveModuleCommand(File archiveLocation,
ModuleRef module)
Instantiates a command to create a DOORS archive containing the data of a DOORS module.
|
public ArchiveModuleCommand(File archiveLocation, ModuleRef module)
archiveLocation
- the absolute file path in the file system where to store the module archive.
The directory must already exist by the time the command is executed.
The file extension is required to be *.dma
.module
- the DOORS module for which data must be archived.