Modifier and Type | Field and Description |
---|---|
protected Path |
archiveFile |
protected Path |
destinationDirectory |
protected PatternsMatcher |
entriesToExclude |
protected ProjectFilesystem |
filesystem |
Constructor and Description |
---|
UnarchiveStep(ArchiveFormat format,
ProjectFilesystem filesystem,
Path archiveFile,
Path destinationDirectory,
Optional<Path> stripPrefix,
PatternsMatcher entriesToExclude)
Create an instance of UnarchiveStep
|
Modifier and Type | Method and Description |
---|---|
StepExecutionResult |
execute(ExecutionContext context) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription, getShortName
protected final ProjectFilesystem filesystem
protected final Path archiveFile
protected final Path destinationDirectory
protected final PatternsMatcher entriesToExclude
public UnarchiveStep(ArchiveFormat format, ProjectFilesystem filesystem, Path archiveFile, Path destinationDirectory, Optional<Path> stripPrefix, PatternsMatcher entriesToExclude)
format
- The type of file that will be extractedfilesystem
- The filesystem that the archive will be extracted intoarchiveFile
- The path to the file to extractdestinationDirectory
- The directory to extract files intostripPrefix
- If present, strip this prefix from paths inside of the archivepublic StepExecutionResult execute(ExecutionContext context) throws IOException, InterruptedException
execute
in interface Step
IOException
InterruptedException