org.ajax4jsf.builder.mojo
Class AbstractCDKMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.ajax4jsf.builder.mojo.AbstractCDKMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AssemblyAttachedLibraryMojo, AssemblyLibraryMojo, CompileMojo, CreateComponentMojo, CreateSkinMojo, GenerateMojo

public abstract class AbstractCDKMojo
extends org.apache.maven.plugin.AbstractMojo

Author:
shura

Field Summary
protected  java.util.List classpathElements
          Project classpath.
protected  java.util.List compileSourceRoots
          The source directories containing the sources to be compiled.
protected  java.io.File componentConfigDirectory
          Place for component configuration XML files.
protected  java.io.File converterConfigDirectory
          Place for converter configuration XML files.
protected  java.io.File facesConfigInclude
          Place for faces configuration XML files
protected  java.lang.String key
           
protected  Library library
           
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 outputTestsDirectory
           
protected  org.apache.maven.project.MavenProject project
          Top maven project.
protected  java.io.File resourcesInclude
          Place for component configuration XML files
protected  java.io.File taglibInclude
          Place for component configuration XML files
protected  java.io.File templatesDirectory
           
protected  java.io.File validatorConfigDirectory
          Place for validator configuration XML files.
protected  org.codehaus.plexus.velocity.VelocityComponent velocity
           
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractCDKMojo()
           
 
Method Summary
protected  Taglib checkLibraryConfig()
          Check library configuration, and fill all empty values to default.
protected  void checkTaglib(Taglib taglib)
           
protected  java.lang.ClassLoader createProjectClassLoader(org.apache.maven.project.MavenProject project)
           
protected  java.lang.ClassLoader createProjectClassLoader(org.apache.maven.project.MavenProject project, boolean useCCL)
           
protected  void writeParsedTemplate(java.lang.String templateName, org.apache.velocity.VelocityContext context, java.io.File configFile)
           
 
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
 
Methods inherited from interface org.apache.maven.plugin.Mojo
execute
 

Field Detail

project

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


key

protected java.lang.String key

componentConfigDirectory

protected java.io.File componentConfigDirectory
Place for component configuration XML files. All '*.xml' files wil be parsed as components config. All '*.ent' files will be processed as include configurations.


validatorConfigDirectory

protected java.io.File validatorConfigDirectory
Place for validator configuration XML files. All '*.xml' files wil be parsed as component config. All '*.ent' files will be processed as include configurations.


converterConfigDirectory

protected java.io.File converterConfigDirectory
Place for converter configuration XML files. All '*.xml' files wil be parsed as components config. All '*.ent' files will be processed as include configurations.


facesConfigInclude

protected java.io.File facesConfigInclude
Place for faces configuration XML files


taglibInclude

protected java.io.File taglibInclude
Place for component configuration XML files


resourcesInclude

protected java.io.File resourcesInclude
Place for component configuration XML files


templatesDirectory

protected java.io.File templatesDirectory

outputJavaDirectory

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


outputTestsDirectory

protected java.io.File outputTestsDirectory

outputResourcesDirectory

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


library

protected Library library

compileSourceRoots

protected java.util.List compileSourceRoots
The source directories containing the sources to be compiled.


classpathElements

protected java.util.List classpathElements
Project classpath.


outputDirectory

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


velocity

protected org.codehaus.plexus.velocity.VelocityComponent velocity
Constructor Detail

AbstractCDKMojo

public AbstractCDKMojo()
Method Detail

checkLibraryConfig

protected Taglib checkLibraryConfig()
Check library configuration, and fill all empty values to default.

Returns:

writeParsedTemplate

protected void writeParsedTemplate(java.lang.String templateName,
                                   org.apache.velocity.VelocityContext context,
                                   java.io.File configFile)
                            throws java.io.IOException,
                                   org.apache.velocity.exception.ResourceNotFoundException,
                                   org.apache.velocity.exception.ParseErrorException,
                                   org.apache.velocity.exception.MethodInvocationException,
                                   java.lang.Exception
Throws:
java.io.IOException
org.apache.velocity.exception.ResourceNotFoundException
org.apache.velocity.exception.ParseErrorException
org.apache.velocity.exception.MethodInvocationException
java.lang.Exception

createProjectClassLoader

protected java.lang.ClassLoader createProjectClassLoader(org.apache.maven.project.MavenProject project,
                                                         boolean useCCL)

createProjectClassLoader

protected java.lang.ClassLoader createProjectClassLoader(org.apache.maven.project.MavenProject project)

checkTaglib

protected void checkTaglib(Taglib taglib)


Copyright © 2009. All Rights Reserved.