public class GenerateMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
cacheEagerly
Turns off library generation and verification in case when no change was detected in sources which supports
Cacheable (it does not have to mean no change was done). |
protected String |
charset |
protected List<String> |
classpathElements
Project classpath.
|
protected List<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 boolean |
forceRecompile
Forces compiler to do not use cache and re-compile all sources from scratch
|
protected Library |
library |
protected String |
locale |
protected Map<String,String> |
options |
protected File |
outputDirectory
The directory for compiled classes.
|
protected File |
outputJavaDirectory
Directory where the output Java Files will be located.
|
protected File |
outputLibraryCache
Directory where serialized library will be cached
|
protected File |
outputResourcesDirectory
Directory where the output Java Files will be located.
|
protected File |
outputTestDirectory |
protected File |
outputTestResourcesDirectory
Directory where the output Java Files will be located.
|
protected org.apache.maven.project.MavenProject |
project
Top maven project.
|
protected String[] |
sourceExcludes
List of filename patterns that will be excluded from process by annotations processor.
|
protected 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 Map<String,String> |
workers |
| Constructor and Description |
|---|
GenerateMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected CdkClassLoader |
createProjectClassLoader(org.apache.maven.project.MavenProject project) |
protected Collection<File> |
doScan(org.apache.maven.model.FileSet[] filesets)
Skan Array of filesets for selected resources.
|
protected String[] |
doScan(String[] includes,
String[] excludes,
File rootFolder) |
void |
execute() |
protected List<String> compileSourceRoots
protected org.apache.maven.model.FileSet[] facesConfigs
src/main/config folder with "xml" extension.protected Library library
protected File outputDirectory
protected File outputJavaDirectory
protected File outputResourcesDirectory
protected File outputTestDirectory
protected File outputTestResourcesDirectory
protected File outputLibraryCache
protected boolean forceRecompile
protected boolean cacheEagerly
Cacheable (it does not have to mean no change was done). Warning: when getting undesired results, try to turn off
this option.protected org.apache.maven.project.MavenProject project
protected String[] sourceExcludes
protected String[] sourceIncludes
protected org.apache.maven.model.FileSet[] templates
src/main/templates folder with "xml" extension.protected String locale
protected String charset
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected CdkClassLoader createProjectClassLoader(org.apache.maven.project.MavenProject project)
protected String[] doScan(String[] includes, String[] excludes, File rootFolder) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected Collection<File> doScan(org.apache.maven.model.FileSet[] filesets) throws org.apache.maven.plugin.MojoExecutionException
filesets - org.apache.maven.plugin.MojoExecutionExceptionCopyright © 2013 JBoss by Red Hat. All Rights Reserved.