org.eclipse.emf.mwe.utils
Class FileCopy

java.lang.Object
  extended by org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent
      extended by org.eclipse.emf.mwe.utils.FileCopy
All Implemented Interfaces:
WorkflowComponent, WorkflowComponentWithID, IWorkflowComponent

public class FileCopy
extends AbstractWorkflowComponent

Copies one file in the file system to another location. Performs low-level read/write operations using NIO.

Author:
Achim Demelt

Constructor Summary
FileCopy()
           
 
Method Summary
 void 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(java.lang.String sourceFile)
           
 void setTargetFile(java.lang.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileCopy

public FileCopy()
Method Detail

setSourceFile

public void setSourceFile(java.lang.String sourceFile)

setTargetFile

public void setTargetFile(java.lang.String targetFile)

checkConfiguration

public void checkConfiguration(Issues issues)
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

protected void invokeInternal(WorkflowContext ctx,
                              ProgressMonitor monitor,
                              Issues issues)
Description copied from class: AbstractWorkflowComponent
Internal method for component execution.

Specified by:
invokeInternal in class AbstractWorkflowComponent
Parameters:
ctx - the workflow context
monitor - the progress monitor
issues - container of execution issues