info.magnolia.module.templatingkit.setup
Class ThemeInstallTask

java.lang.Object
  extended by info.magnolia.module.delta.AbstractTask
      extended by info.magnolia.module.templatingkit.setup.ThemeInstallTask
All Implemented Interfaces:
info.magnolia.module.delta.Task

public class ThemeInstallTask
extends info.magnolia.module.delta.AbstractTask

Installs all css files under /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.

Version:
$Id$
Author:
pbracher

Nested Class Summary
 class ThemeInstallTask.ResourceNameFilter
          Filter allowing only theme xml files to pass.
 
Field Summary
protected static String DEFAULT_THEME_PATH_PATTERN
           
protected static String THEME_NAME_PROPERTY
           
 
Fields inherited from class info.magnolia.module.delta.AbstractTask
DO_NOTHING, log
 
Constructor Summary
ThemeInstallTask()
           
ThemeInstallTask(boolean isUpdate)
           
ThemeInstallTask(boolean isUpdate, boolean stripExtensions)
           
 
Method Summary
 void execute(info.magnolia.module.InstallContext ctx)
           
protected  String getThemeName(info.magnolia.module.InstallContext ctx)
           
 
Methods inherited from class info.magnolia.module.delta.AbstractTask
getDescription, getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

THEME_NAME_PROPERTY

protected static final String THEME_NAME_PROPERTY
See Also:
Constant Field Values

DEFAULT_THEME_PATH_PATTERN

protected static final String DEFAULT_THEME_PATH_PATTERN
See Also:
Constant Field Values
Constructor Detail

ThemeInstallTask

public ThemeInstallTask()

ThemeInstallTask

public ThemeInstallTask(boolean isUpdate)

ThemeInstallTask

public ThemeInstallTask(boolean isUpdate,
                        boolean stripExtensions)
Method Detail

execute

public void execute(info.magnolia.module.InstallContext ctx)
             throws info.magnolia.module.delta.TaskExecutionException
Throws:
info.magnolia.module.delta.TaskExecutionException

getThemeName

protected String getThemeName(info.magnolia.module.InstallContext ctx)


Copyright © 2008-2014 Magnolia International Ltd.. All Rights Reserved.