Spiffy UI Framework

org.spiffyui.maven.plugins.utils
Class SpiffyGwtModuleReader

java.lang.Object
  extended by org.spiffyui.maven.plugins.utils.SpiffyGwtModuleReader

public class SpiffyGwtModuleReader
extends java.lang.Object

The SpiffyGwtModuleReader finds GWT modules in a Maven project and makes them available for GWT compilation.

This class finds GWT modules and creates a new module which inherits from the existing module and inserts our build properties, returns the new temporary project file, and marks the temporary project file for deletion when the build is complete.


Constructor Summary
SpiffyGwtModuleReader(org.apache.maven.project.MavenProject mavenProject, Log log, ClasspathBuilder classpathBuilder, java.lang.String userAgents, java.lang.String locales)
          Create a new SpiffyGwtModuleReader.
 
Method Summary
 java.util.List<java.lang.String> getGwtModules()
          Get the GWT modules for this project.
 GwtModule readModule(java.lang.String name)
          Read a specified GWT module into the project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpiffyGwtModuleReader

public SpiffyGwtModuleReader(org.apache.maven.project.MavenProject mavenProject,
                             Log log,
                             ClasspathBuilder classpathBuilder,
                             java.lang.String userAgents,
                             java.lang.String locales)
Create a new SpiffyGwtModuleReader.

Parameters:
mavenProject - the maven project
log - the logging object
classpathBuilder - the classpath builder
userAgents - the user agents for this project or null to leave the default agents
locales - the locales for this project or null to leave the default locales
Method Detail

getGwtModules

public java.util.List<java.lang.String> getGwtModules()
Get the GWT modules for this project.

Returns:
the list of GWT modules found in this project

readModule

public GwtModule readModule(java.lang.String name)
                     throws GwtModuleReaderException
Read a specified GWT module into the project.

Parameters:
name - the name of the module to read
Returns:
the object representing this module
Throws:
GwtModuleReaderException - if there an error reading the module

Spiffy UI Framework