Package org.apache.uima.pear.generate
Class PearExportOperation
java.lang.Object
org.apache.uima.pear.generate.PearExportOperation
- All Implemented Interfaces:
org.eclipse.jface.operation.IRunnableWithProgress
public class PearExportOperation
extends Object
implements org.eclipse.jface.operation.IRunnableWithProgress
IRunnableWithProgress
that creates a zip file containing a given set of resources *.-
Field Summary
Modifier and TypeFieldDescriptionprotected final boolean
whether zip contents should be compressed.protected final org.eclipse.core.resources.IFile[]
An array of files that should be included in the zip file.protected final String
Filename for the destination zip file.protected final org.eclipse.core.resources.IContainer
Prefix to strip off from the provided files paths. -
Constructor Summary
ConstructorDescriptionPearExportOperation
(org.eclipse.core.resources.IFile[] exports, org.eclipse.core.resources.IContainer virtualRoot, String filename, boolean compress) Constructor. -
Method Summary
-
Field Details
-
fExports
protected final org.eclipse.core.resources.IFile[] fExportsAn array of files that should be included in the zip file. -
fRoot
protected final org.eclipse.core.resources.IContainer fRootPrefix to strip off from the provided files paths. -
fFilename
Filename for the destination zip file. -
fCompress
protected final boolean fCompresswhether zip contents should be compressed.
-
-
Constructor Details
-
PearExportOperation
public PearExportOperation(org.eclipse.core.resources.IFile[] exports, org.eclipse.core.resources.IContainer virtualRoot, String filename, boolean compress) Constructor.- Parameters:
exports
- An array of files that should be included in the zip filevirtualRoot
- Prefix to strip off from the provided files paths, e.g. if '/foo/bar/baz.txt' is included and '/foo' is the virtual root, than '/bar/baz.txt' will be created in the zip filefilename
- Filename for the destination zip filecompress
-true
if the zip contents should be compressed,false
otherwise
-
-
Method Details
-
run
public void run(org.eclipse.core.runtime.IProgressMonitor monitor) throws InvocationTargetException, InterruptedException - Specified by:
run
in interfaceorg.eclipse.jface.operation.IRunnableWithProgress
- Throws:
InvocationTargetException
InterruptedException
-