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