public class ZipItem extends ProcessCommandItem
Modifier and Type | Class and Description |
---|---|
static class |
ZipItem.FileSet |
Modifier and Type | Field and Description |
---|---|
protected String |
archive |
protected ZipItem.FileSet[] |
fileSets |
processCommand
Constructor and Description |
---|
ZipItem(String archive,
ZipItem.FileSet[] fileSets) |
Modifier and Type | Method and Description |
---|---|
ZipItem |
copy()
Makes a deep copy of this item.
|
String |
execute(Document document,
File workingDir,
String[] args,
String allArgs,
String[] vars,
Console console) |
String |
getArchive() |
ZipItem.FileSet[] |
getFileSets() |
protected void |
zipFiles(ZipOutputStream zip,
File zipFile,
File workingDir,
String[] args,
String allArgs,
String[] vars,
Console console) |
copyFile, getConfigurationURL, getDebug, getProcessCommand, glob, resolve, substitute, substitute, substituteParameters
protected final String archive
protected final ZipItem.FileSet[] fileSets
public ZipItem(String archive, ZipItem.FileSet[] fileSets)
public ZipItem copy()
ProcessCommandItem
copy
in class ProcessCommandItem
null
if, for any reason,
copying this item failspublic String getArchive()
public ZipItem.FileSet[] getFileSets()
public String execute(Document document, File workingDir, String[] args, String allArgs, String[] vars, Console console) throws IOException, ProcessCommandItemException
execute
in class ProcessCommandItem
IOException
ProcessCommandItemException
protected void zipFiles(ZipOutputStream zip, File zipFile, File workingDir, String[] args, String allArgs, String[] vars, Console console) throws IOException, ProcessCommandItemException