org.richfaces.builder.mojo
Class GenerateMojo

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

public class GenerateMojo
extends org.apache.maven.plugin.AbstractMojo

Author:
asmirnov@exadel.com

Field Summary
protected  java.util.List<java.lang.String> classpathElements
          Project classpath.
protected  java.util.List<java.lang.String> compileSourceRoots
          The source directories containing the sources to be compiled.
protected  org.apache.maven.model.FileSet[] facesConfigs
          The list of JSF configuration files that will be processed by CDK.
protected  Library library
           
protected  java.util.Map<java.lang.String,java.lang.String> options
           
protected  java.io.File outputDirectory
          The directory for compiled classes.
protected  java.io.File outputJavaDirectory
          Directory where the output Java Files will be located.
protected  java.io.File outputResourcesDirectory
          Directory where the output Java Files will be located.
protected  java.io.File outputTestDirectory
           
protected  java.io.File outputTestResourcesDirectory
          Directory where the output Java Files will be located.
protected  org.apache.maven.project.MavenProject project
          Top maven project.
protected  java.lang.String[] sourceExcludes
          List of filename patterns that will be excluded from process by annotations processor.
protected  java.lang.String[] sourceIncludes
          List of filename patterns that will be included to process by annotations processor.
protected  org.apache.maven.model.FileSet[] templates
          The list of JsfRenderer template files that will be processed by CDK.
protected  java.util.Map<java.lang.String,java.lang.String> workers
           
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
GenerateMojo()
           
 
Method Summary
protected  org.richfaces.cdk.CdkClassLoader createProjectClassLoader(org.apache.maven.project.MavenProject project)
           
protected  java.util.Collection<java.io.File> doScan(org.apache.maven.model.FileSet[] filesets)
          Skan Array of filesets for selected resources.
protected  java.lang.String[] doScan(java.lang.String[] includes, java.lang.String[] excludes, java.io.File rootFolder)
           
 void execute()
           
 
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
 

Field Detail

classpathElements

protected java.util.List<java.lang.String> classpathElements
Project classpath.


compileSourceRoots

protected java.util.List<java.lang.String> compileSourceRoots
The source directories containing the sources to be compiled.


facesConfigs

protected org.apache.maven.model.FileSet[] facesConfigs
The list of JSF configuration files that will be processed by CDK. By default, CDK looks for all files in the src/main/config folder with "xml" extension.


options

protected java.util.Map<java.lang.String,java.lang.String> options

library

protected Library library

outputDirectory

protected java.io.File outputDirectory
The directory for compiled classes.


outputJavaDirectory

protected java.io.File outputJavaDirectory
Directory where the output Java Files will be located.


outputResourcesDirectory

protected java.io.File outputResourcesDirectory
Directory where the output Java Files will be located.


outputTestDirectory

protected java.io.File outputTestDirectory

outputTestResourcesDirectory

protected java.io.File outputTestResourcesDirectory
Directory where the output Java Files will be located.


project

protected org.apache.maven.project.MavenProject project
Top maven project.


sourceExcludes

protected java.lang.String[] sourceExcludes
List of filename patterns that will be excluded from process by annotations processor. By default, all *.java files will be processed.


sourceIncludes

protected java.lang.String[] sourceIncludes
List of filename patterns that will be included to process by annotations processor. By default, all *.java files will be processed.


templates

protected org.apache.maven.model.FileSet[] templates
The list of JsfRenderer template files that will be processed by CDK. By default, CDK looks for all files in the src/main/templates folder with "xml" extension.


workers

protected java.util.Map<java.lang.String,java.lang.String> workers
Constructor Detail

GenerateMojo

public GenerateMojo()
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

createProjectClassLoader

protected org.richfaces.cdk.CdkClassLoader createProjectClassLoader(org.apache.maven.project.MavenProject project)

doScan

protected java.lang.String[] doScan(java.lang.String[] includes,
                                    java.lang.String[] excludes,
                                    java.io.File rootFolder)
                             throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

doScan

protected java.util.Collection<java.io.File> doScan(org.apache.maven.model.FileSet[] filesets)
                                             throws org.apache.maven.plugin.MojoExecutionException
Skan Array of filesets for selected resources.

Parameters:
filesets -
Returns:
Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.