public class ExecuteCommandTask extends AbstractTask
DO_NOTHING, log
Constructor and Description |
---|
ExecuteCommandTask(String taskName,
String taskDescription,
Class<? extends Command> commandClass,
Object... params)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(InstallContext installContext)
A good-citizen task should execute itself responsibly: it should know
what to do in case of problems: for instance, fixable or irrelevant
issues should usually just be logged used the InstallContext methods,
when the user can fix them later on.
|
getDescription, getName, toString
public ExecuteCommandTask(String taskName, String taskDescription, Class<? extends Command> commandClass, Object... params)
taskName
- name of the tasktaskDescription
- description of the taskcommandName
- command classparams
- parameters to be passed to the command's constructorpublic void execute(InstallContext installContext) throws TaskExecutionException
Task
TaskExecutionException
Copyright © 2003–2017 Magnolia International Ltd.. All rights reserved.