public class ThemeInstallTask
extends info.magnolia.module.delta.AbstractTask
/templating-kit/themes/themeName/css
to the
resources and the images under /templating-kit/themes/themeName/img
to the
dms while themeName is a property in the module descriptor.Modifier and Type | Class and Description |
---|---|
class |
ThemeInstallTask.ResourceNameFilter
Filter allowing only theme xml files to pass.
|
Modifier and Type | Field and Description |
---|---|
protected static String |
DEFAULT_THEME_PATH_PATTERN |
protected static String |
THEME_NAME_PROPERTY |
Constructor and Description |
---|
ThemeInstallTask() |
ThemeInstallTask(boolean isUpdate) |
ThemeInstallTask(boolean isUpdate,
boolean stripExtensions)
Deprecated.
since 2.9.3 - use
ThemeInstallTask(boolean) instead due to file extension is required
in order to avoid duplicate resources. |
Modifier and Type | Method and Description |
---|---|
void |
execute(info.magnolia.module.InstallContext ctx) |
protected String |
getThemeName(info.magnolia.module.InstallContext ctx) |
protected static final String THEME_NAME_PROPERTY
protected static final String DEFAULT_THEME_PATH_PATTERN
public ThemeInstallTask()
public ThemeInstallTask(boolean isUpdate)
@Deprecated public ThemeInstallTask(boolean isUpdate, boolean stripExtensions)
ThemeInstallTask(boolean)
instead due to file extension is required
in order to avoid duplicate resources.public void execute(info.magnolia.module.InstallContext ctx) throws info.magnolia.module.delta.TaskExecutionException
info.magnolia.module.delta.TaskExecutionException
protected String getThemeName(info.magnolia.module.InstallContext ctx)
Copyright © 2008–2017 Magnolia International Ltd.. All rights reserved.