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
FieldsModifier and TypeFieldDescriptionprotected final booleanwhether 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 StringFilename for the destination zip file.protected final org.eclipse.core.resources.IContainerPrefix to strip off from the provided files paths. -
Constructor Summary
ConstructorsConstructorDescriptionPearExportOperation(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-trueif the zip contents should be compressed,falseotherwise
-
-
Method Details
-
run
public void run(org.eclipse.core.runtime.IProgressMonitor monitor) throws InvocationTargetException, InterruptedException - Specified by:
runin interfaceorg.eclipse.jface.operation.IRunnableWithProgress- Throws:
InvocationTargetExceptionInterruptedException
-