Package io.openliberty.tools.ant
Class FeatureManagerTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- io.openliberty.tools.ant.AbstractTask
-
- io.openliberty.tools.ant.FeatureManagerTask
-
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
InstallFeatureTask,UninstallFeatureTask
public abstract class FeatureManagerTask extends AbstractTask
Install feature task.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFeatureManagerTask.FeatureClass for the nested 'feature' element.static classFeatureManagerTask.ReturnCodefeatureManager's exit codes.
-
Field Summary
Fields Modifier and Type Field Description protected Stringcmdprotected List<FeatureManagerTask.Feature>featuresprotected Stringname-
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 FeatureManagerTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFeature(FeatureManagerTask.Feature feature)Add a Feature objectList<FeatureManagerTask.Feature>getFeatures()StringgetName()protected voidinitTask()voidsetFeatures(List<FeatureManagerTask.Feature> features)voidsetName(String name)-
Methods inherited from class io.openliberty.tools.ant.AbstractTask
checkReturnCode, checkReturnCodeAndError, countStringOccurrencesInFile, findStringInFile, findStringsInFile, getFileName, getInstallDir, getLogFile, getMessage, getOutputDir, getRef, getReturnCode, getServerName, getServerOutputDir, getUserDir, sendErrorInvokeCommand, setInstallDir, setOutputDir, setRef, setServerName, setUserDir, stopServer, waitForStringInLog, waitForUpdatedStringInLog
-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, execute, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Field Detail
-
cmd
protected String cmd
-
name
protected String name
-
features
protected List<FeatureManagerTask.Feature> features
-
-
Method Detail
-
addFeature
public void addFeature(FeatureManagerTask.Feature feature)
Add a Feature object- Parameters:
feature- The Feature object.
-
initTask
protected void initTask()
- Overrides:
initTaskin classAbstractTask
-
getName
public String getName()
- Returns:
- the feature name
-
setName
public void setName(String name)
- Parameters:
name- the feature name
-
getFeatures
public List<FeatureManagerTask.Feature> getFeatures()
- Returns:
- the features
-
setFeatures
public void setFeatures(List<FeatureManagerTask.Feature> features)
- Parameters:
features- the features to set
-
-