Class CompressionTools
java.lang.Object
com.amazonaws.codepipeline.jenkinsplugin.CompressionTools
-
Method Summary
Modifier and TypeMethodDescriptionaddFilesToCompress
(Path pathToCompress, BuildListener listener) static File
compressFile
(String projectName, Path pathToCompress, CodePipelineStateModel.CompressionType compressionType, BuildListener listener) static void
compressTarFile
(File temporaryTarFile, Path pathToCompress, BuildListener listener) static void
compressTarGzFile
(File temporaryTarGzFile, Path pathToCompress, BuildListener listener) static void
compressZipFile
(File temporaryZipFile, Path pathToCompress, BuildListener listener) static Path
resolveWorkspacePath
(File workspace, String outputPath)
-
Method Details
-
compressFile
public static File compressFile(String projectName, Path pathToCompress, CodePipelineStateModel.CompressionType compressionType, BuildListener listener) throws IOException - Throws:
IOException
-
compressZipFile
public static void compressZipFile(File temporaryZipFile, Path pathToCompress, BuildListener listener) throws IOException - Throws:
IOException
-
compressTarFile
public static void compressTarFile(File temporaryTarFile, Path pathToCompress, BuildListener listener) throws IOException - Throws:
IOException
-
compressTarGzFile
public static void compressTarGzFile(File temporaryTarGzFile, Path pathToCompress, BuildListener listener) throws IOException - Throws:
IOException
-
addFilesToCompress
public static List<File> addFilesToCompress(Path pathToCompress, BuildListener listener) throws IOException - Throws:
IOException
-
resolveWorkspacePath
public static Path resolveWorkspacePath(File workspace, String outputPath) throws FileNotFoundException - Throws:
FileNotFoundException
-