Package io.openliberty.tools.ant
Class CleanTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- io.openliberty.tools.ant.AbstractTask
-
- io.openliberty.tools.ant.CleanTask
-
- All Implemented Interfaces:
Cloneable
public class CleanTask extends AbstractTask
Removes the apps deployed to the apps/dropins folder, the logs in the serverOutputDir and every file in the workarea folder depending on the type of cleaning.
-
-
Field Summary
-
Fields inherited from class io.openliberty.tools.ant.AbstractTask
DEFAULT_LOG_FILE, DEFAULT_SERVER, installDir, isWindows, messages, osName, outputDir, processBuilder, ref, serverConfigDir, serverName, serverOutputDir, userDir, WLP_OUTPUT_DIR_VAR, WLP_USER_DIR_VAR
-
-
Constructor Summary
Constructors Constructor Description CleanTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoClean()voidexecute()booleanisApps()booleanisDropins()booleanisLogs()booleanisWorkarea()voidsetApps(boolean apps)voidsetDropins(boolean dropins)voidsetLogs(boolean logs)voidsetWorkarea(boolean workarea)-
Methods inherited from class io.openliberty.tools.ant.AbstractTask
checkReturnCode, checkReturnCodeAndError, countStringOccurrencesInFile, findStringInFile, findStringsInFile, getFileName, getInstallDir, getLogFile, getMessage, getOutputDir, getRef, getReturnCode, getServerName, getServerOutputDir, getUserDir, initTask, sendErrorInvokeCommand, setInstallDir, setOutputDir, setRef, setServerName, setUserDir, stopServer, waitForStringInLog, waitForUpdatedStringInLog
-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Method Detail
-
execute
public void execute() throws org.apache.tools.ant.BuildException- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException
-
isLogs
public boolean isLogs()
- Returns:
- the logs
-
setLogs
public void setLogs(boolean logs)
- Parameters:
logs- Clean the serverOutputDir/logs dir
-
isWorkarea
public boolean isWorkarea()
- Returns:
- the workarea
-
setWorkarea
public void setWorkarea(boolean workarea)
- Parameters:
workarea- Clean the serverOutputDir/workarea dir
-
isDropins
public boolean isDropins()
- Returns:
- the dropins
-
setDropins
public void setDropins(boolean dropins)
- Parameters:
dropins- Clean the serverConfigDir/dropins dir
-
isApps
public boolean isApps()
- Returns:
- the apps
-
setApps
public void setApps(boolean apps)
- Parameters:
apps- Clean the serverConfigDir/apps dir
-
-