Package org.eclipse.emf.mwe.utils
Class FileCopy
java.lang.Object
org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent
org.eclipse.emf.mwe.utils.FileCopy
- All Implemented Interfaces:
WorkflowComponent
,WorkflowComponentWithID
,IWorkflowComponent
Copies one file in the file system to another location. Performs low-level read/write operations using NIO.
- Author:
- Achim Demelt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkConfiguration
(Issues issues) Called by the container after configuration so the component can validate the configuration before invocation.protected void
invokeInternal
(WorkflowContext ctx, ProgressMonitor monitor, Issues issues) Internal method for component execution.void
setSourceFile
(String sourceFile) void
setTargetFile
(String targetFile) Methods inherited from class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent
checkRequiredConfigProperty, getBridge, getComponentName, getContainer, getId, getLocation, getLogMessage, invoke, invoke, postInvoke, preInvoke, setContainer, setId, setLocation, setSkipOnErrors
-
Constructor Details
-
FileCopy
public FileCopy()
-
-
Method Details
-
setSourceFile
-
setTargetFile
-
checkConfiguration
Description copied from interface:WorkflowComponent
Called by the container after configuration so the component can validate the configuration before invocation.- Parameters:
issues
- implementors should report configuration issues to this.
-
invokeInternal
Description copied from class:AbstractWorkflowComponent
Internal method for component execution.- Specified by:
invokeInternal
in classAbstractWorkflowComponent
- Parameters:
ctx
- the workflow contextmonitor
- the progress monitorissues
- container of execution issues
-