Package io.jenkins.plugins.oak9.utils
Class FileArchiver
- java.lang.Object
-
- io.jenkins.plugins.oak9.utils.FileArchiver
-
public class FileArchiver extends Object
-
-
Constructor Summary
Constructors Constructor Description FileArchiver(FilePath basePath, Collection<File> filesList, String outputFileName)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
zipFiles()
Zip files without specifying a base path - may create overly large directory tree in zipvoid
zipFiles(String base_path)
Zip files to ship to oak9
-
-
-
Constructor Detail
-
FileArchiver
public FileArchiver(FilePath basePath, Collection<File> filesList, String outputFileName)
Constructor- Parameters:
basePath
-filesList
-outputFileName
-
-
-
Method Detail
-
zipFiles
public void zipFiles() throws IOException
Zip files without specifying a base path - may create overly large directory tree in zip- Throws:
IOException
- thrown in the event that the zip file cannot be created
-
zipFiles
public void zipFiles(String base_path) throws IOException
Zip files to ship to oak9- Parameters:
base_path
- the path from which to start scanning for IaC files- Throws:
IOException
- thrown in the event that zip file cannot be created
-
-