|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent2 org.eclipse.emf.mwe.utils.DirectoryCleaner
public class DirectoryCleaner
Constructor Summary | |
---|---|
DirectoryCleaner()
|
Method Summary | |
---|---|
void |
addExclude(java.lang.String exclude)
Adds an exclude. |
protected void |
checkConfigurationInternal(Issues issues)
|
boolean |
cleanFolder(java.io.File parentFolder,
java.io.FileFilter filter,
boolean continueOnError,
boolean deleteParentFolder)
|
void |
cleanFolder(java.lang.String srcGenPath)
Deletes all files and subdirectories under dir. |
java.lang.String |
getComponentName()
Returns the component's name. |
java.lang.String |
getLogMessage()
Returns the log message, |
protected void |
invokeInternal(WorkflowContext model,
ProgressMonitor monitor,
Issues issues)
Internal method for component execution. |
boolean |
isExcluded(java.io.File path)
|
boolean |
isUseDefaultExcludes()
Returns if the default excludes are used. |
void |
setDirectory(java.lang.String directory)
Sets the directory. |
void |
setUseDefaultExcludes(boolean useDefaultExcludes)
Sets if the default excludes are used. |
Methods inherited from class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent2 |
---|
checkConfiguration |
Methods inherited from class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent |
---|
checkRequiredConfigProperty, getBridge, getContainer, getId, getLocation, 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 |
---|
public DirectoryCleaner()
Method Detail |
---|
public void setDirectory(java.lang.String directory)
directory
- name of directorypublic java.lang.String getLogMessage()
WorkflowComponentWithID
getLogMessage
in interface WorkflowComponentWithID
getLogMessage
in class AbstractWorkflowComponent
AbstractWorkflowComponent.getLogMessage()
protected void invokeInternal(WorkflowContext model, ProgressMonitor monitor, Issues issues)
AbstractWorkflowComponent
invokeInternal
in class AbstractWorkflowComponent
model
- the workflow contextmonitor
- the progress monitorissues
- container of execution issuesprotected void checkConfigurationInternal(Issues issues)
checkConfigurationInternal
in class AbstractWorkflowComponent2
public void cleanFolder(java.lang.String srcGenPath) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public boolean isExcluded(java.io.File path)
public boolean cleanFolder(java.io.File parentFolder, java.io.FileFilter filter, boolean continueOnError, boolean deleteParentFolder) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public boolean isUseDefaultExcludes()
true
, if the default excludes are used, otherwise
false
.public void setUseDefaultExcludes(boolean useDefaultExcludes)
useDefaultExcludes
- If true
, the default excludes are used, if
false
, the default excludes are ignored.public void addExclude(java.lang.String exclude)
exclude
- the excludepublic java.lang.String getComponentName()
AbstractWorkflowComponent
getComponentName
in interface WorkflowComponent
getComponentName
in class AbstractWorkflowComponent
AbstractWorkflowComponent.getComponentName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |