org.apache.myfaces.buildtools.maven2.plugin.builder
Class MakeConfigMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.myfaces.buildtools.maven2.plugin.builder.AbstractBuilderMojo
org.apache.myfaces.buildtools.maven2.plugin.builder.MakeConfigMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class MakeConfigMojo
- extends AbstractBuilderMojo
Creates taglib (tld) and faces-config files.
This Mojo actually provides a generic goal that will run a configurable
velocity template file and generate a single output file. The template is
passed the full metadata model object, and can select from the model whatever
data it wants.
The execution can be configured with:
- The name of the input template to be executed
- The name of the output file to be created
- Any number of variables which are accessable from the template
(string values only)
The executed template has the following variables available to it:
- model: the full metadata model for this project
- modelIds: specifies which items from the model should be processed
- baseContent: the full text of the contents of the "xmlBaseFile" (if any)
- utils: an instance of MyfacesUtils that provides static helper methods
- and whatever (name,value) pairs were configured via the "params" property
of this mojo.
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Method Summary |
void |
execute()
Execute the Mojo. |
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 |
MakeConfigMojo
public MakeConfigMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
- Execute the Mojo.
The metadata model is loaded, and the specified template is executed with
any template output being written to the specified output file.
- Throws:
org.apache.maven.plugin.MojoExecutionException
Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.