public class FileExtractor extends Object
Constructor and Description |
---|
FileExtractor(boolean overwriteFilesThatExist) |
Modifier and Type | Method and Description |
---|---|
String |
extractFileFromArchive(File downloadedCompressedFile,
String extractedToFilePath,
BinaryType possibleFilenames)
Extract binary from a downloaded archive file
|
public FileExtractor(boolean overwriteFilesThatExist)
overwriteFilesThatExist
- Overwrite any existing filespublic String extractFileFromArchive(File downloadedCompressedFile, String extractedToFilePath, BinaryType possibleFilenames) throws IOException, IllegalArgumentException, org.apache.maven.plugin.MojoFailureException
downloadedCompressedFile
- The downloaded compressed fileextractedToFilePath
- Path to extracted filepossibleFilenames
- Names of the files we want to extractIOException
- Unable to write to filesystemIllegalArgumentException
- Unsupported archiveorg.apache.maven.plugin.MojoFailureException
- Error running pluginCopyright © 2017. All rights reserved.