|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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(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. |
| 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(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 AbstractWorkflowComponent2
public 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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||