org.ajax4jsf.builder.mojo
Class CreateSkinMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.ajax4jsf.builder.mojo.AbstractCDKMojo
          extended by org.ajax4jsf.builder.mojo.CreateSkinMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class CreateSkinMojo
extends AbstractCDKMojo

This mojo is intended to create new skin add-on within existing project. New resources are added to the project, and existing resource config is modified to include new files.

Usage mvn cdk:add-skin -Dname=<skinName> -Dpackage=<skinPackage>.

This adds new skin named <skinName> to project resources/META-INF/skins folder.
Skin resources - XCSS files are placed in <skinPackage>.<skinName> package within project resources directory.
If package is not specified, it is set same as groupId.
Following parameters can be used
  • name - name of the skin. Required.
  • package - base package of the skin. If not specified, groupId is used
  • createExt - if set to true, extended skin files are added
  • baseSkin - name of base skin
  • Author:
    Maksim Kaszynski

    Field Summary
     
    Fields inherited from class org.ajax4jsf.builder.mojo.AbstractCDKMojo
    classpathElements, compileSourceRoots, componentConfigDirectory, converterConfigDirectory, facesConfigInclude, key, library, outputDirectory, outputJavaDirectory, outputResourcesDirectory, outputTestsDirectory, project, resourcesInclude, taglibInclude, templatesDirectory, validatorConfigDirectory, velocity
     
    Fields inherited from interface org.apache.maven.plugin.Mojo
    ROLE
     
    Constructor Summary
    CreateSkinMojo()
               
     
    Method Summary
     void execute()
               
     
    Methods inherited from class org.ajax4jsf.builder.mojo.AbstractCDKMojo
    checkLibraryConfig, checkTaglib, createProjectClassLoader, createProjectClassLoader, writeParsedTemplate
     
    Methods inherited from class org.apache.maven.plugin.AbstractMojo
    getLog, getPluginContext, setLog, setPluginContext
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    CreateSkinMojo

    public CreateSkinMojo()
    Method Detail

    execute

    public void execute()
                 throws org.apache.maven.plugin.MojoExecutionException,
                        org.apache.maven.plugin.MojoFailureException
    Throws:
    org.apache.maven.plugin.MojoExecutionException
    org.apache.maven.plugin.MojoFailureException


    Copyright © 2009. All Rights Reserved.