public class DirectoryCleaner extends AbstractWorkflowComponent2
| Constructor and Description |
|---|
DirectoryCleaner() |
| Modifier and Type | Method and Description |
|---|---|
void |
addExclude(String exclude)
Adds an exclude.
|
protected void |
checkConfigurationInternal(Issues issues) |
boolean |
cleanFolder(File parentFolder,
FileFilter filter,
boolean continueOnError,
boolean deleteParentFolder) |
void |
cleanFolder(String srcGenPath)
Deletes all files and subdirectories under dir.
|
String |
getComponentName() |
String |
getLogMessage() |
protected void |
invokeInternal(WorkflowContext model,
ProgressMonitor monitor,
Issues issues) |
boolean |
isExcluded(File path) |
boolean |
isUseDefaultExcludes()
Returns if the default excludes are used.
|
void |
setDirectory(String directory)
Sets the directory.
|
void |
setUseDefaultExcludes(boolean useDefaultExcludes)
Sets if the default excludes are used.
|
checkConfigurationcheckRequiredConfigProperty, getBridge, getContainer, getId, getLocation, invoke, invoke, postInvoke, preInvoke, setContainer, setId, setLocation, setSkipOnErrorspublic void setDirectory(String directory)
directory - name of directorypublic String getLogMessage()
getLogMessage in interface WorkflowComponentWithIDgetLogMessage in class AbstractWorkflowComponentAbstractWorkflowComponent.getLogMessage()protected void invokeInternal(WorkflowContext model, ProgressMonitor monitor, Issues issues)
invokeInternal in class AbstractWorkflowComponentprotected void checkConfigurationInternal(Issues issues)
checkConfigurationInternal in class AbstractWorkflowComponent2public void cleanFolder(String srcGenPath) throws FileNotFoundException
FileNotFoundExceptionpublic boolean isExcluded(File path)
public boolean cleanFolder(File parentFolder, FileFilter filter, boolean continueOnError, boolean deleteParentFolder) throws FileNotFoundException
FileNotFoundExceptionpublic 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(String exclude)
exclude - the excludepublic String getComponentName()
getComponentName in interface WorkflowComponentgetComponentName in class AbstractWorkflowComponentAbstractWorkflowComponent.getComponentName()Copyright © 2015. All rights reserved.