org.apache.myfaces.buildtools.maven2.plugin.builder
Class MakeConfigMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by 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 org.apache.maven.plugin.AbstractMojo

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 executed template has the following variables available to it:


Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
MakeConfigMojo()
           
 
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
 

Constructor Detail

MakeConfigMojo

public MakeConfigMojo()
Method Detail

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-2011 The Apache Software Foundation. All Rights Reserved.