public class ZipFile extends Object
Constructor and Description |
---|
ZipFile() |
ZipFile(java.nio.file.Path workspacePath) |
Modifier and Type | Method and Description |
---|---|
void |
cleanFilePathList() |
void |
doZip(java.nio.file.Path workspacePath) |
void |
generateFilePathList(File node)
Traverse a directory and get all files, and add the file into fileList
|
void |
generatePrjDirList(java.nio.file.Path dirPath) |
List<File> |
getFileList() |
static void |
main(String[] args) |
void |
zipProject(List<java.nio.file.Path> filePathList,
java.nio.file.Path projectPath,
String zipFileName)
Zip zipProject
|
public ZipFile()
public ZipFile(java.nio.file.Path workspacePath)
public static void main(String[] args) throws IOException, InterruptedException
IOException
InterruptedException
public void doZip(java.nio.file.Path workspacePath) throws JenkinsPluginException
JenkinsPluginException
public void zipProject(List<java.nio.file.Path> filePathList, java.nio.file.Path projectPath, String zipFileName)
public void generateFilePathList(File node)
node
- file or directorypublic void generatePrjDirList(java.nio.file.Path dirPath) throws JenkinsPluginException
JenkinsPluginException
public void cleanFilePathList()
Copyright © 2004-2015. All Rights Reserved.