public abstract class AbstractConditionalRepositoryTask extends AbstractRepositoryTask
DO_NOTHING
Constructor and Description |
---|
AbstractConditionalRepositoryTask(String name,
String description) |
Modifier and Type | Method and Description |
---|---|
void |
execute(InstallContext ctx)
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.
|
abstract String |
getCheckedPath()
Returns a path in a repository in the form
repository:path (e.g. |
doExecute
getDescription, getName, toString
public abstract String getCheckedPath()
repository:path
(e.g.
config:server/activation
) that will checked. Only if such path doesn't exist, doExecute() will be
called.public void execute(InstallContext ctx) throws TaskExecutionException
execute
in interface Task
execute
in class AbstractRepositoryTask
TaskExecutionException
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.