org.codehaus.mojo.gwt
Class AbstractGwtModuleMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.gwt.AbstractGwtMojo
          extended by org.codehaus.mojo.gwt.AbstractGwtModuleMojo
All Implemented Interfaces:
ContextEnabled, Mojo, GwtModuleReader
Direct Known Subclasses:
AbstractGwtShellMojo, EclipseMojo, GwtCleanMojo, GwtResourcesMojo, GwtSourcesJarMojo, SdkInstallMojo

public abstract class AbstractGwtModuleMojo
extends AbstractGwtMojo
implements GwtModuleReader

Add support for GWT Modules.

Search and read the gwt.xml module files to detect project structure.

Version:
$Id: AbstractGwtModuleMojo.java 13196 2010-11-25 16:39:40Z olamy $
Author:
Nicolas De Loof

Field Summary
static String GWT_MODULE_EXTENSION
          Deprecated. use DefaultGwtModuleReader.GWT_MODULE_EXTENSION
 
Fields inherited from class org.codehaus.mojo.gwt.AbstractGwtMojo
artifactFactory, classpathBuilder, GWT_GROUP_ID, gwtSdkFirstInClasspath, localRepository, remoteRepositories, resolver, warSourceDirectory
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractGwtModuleMojo()
           
 
Method Summary
protected  void addCompileSourceRoot(File path)
           
 List<String> getGwtModules()
           
 String[] getModules()
          Return the configured modules or scan the project source/resources folder to find them
 GwtModule readModule(String name)
           
 
Methods inherited from class org.codehaus.mojo.gwt.AbstractGwtMojo
addClasspathElements, getClasspath, getGenerateDirectory, getGwtDevJar, getGwtUserJar, getLocalRepository, getOutputDirectory, getProject, getProjectArtifacts, getRemoteRepositories, resolve
 
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

GWT_MODULE_EXTENSION

public static final String GWT_MODULE_EXTENSION
Deprecated. use DefaultGwtModuleReader.GWT_MODULE_EXTENSION
See Also:
Constant Field Values
Constructor Detail

AbstractGwtModuleMojo

public AbstractGwtModuleMojo()
Method Detail

getGwtModules

public List<String> getGwtModules()
Specified by:
getGwtModules in interface GwtModuleReader

getModules

public String[] getModules()
Return the configured modules or scan the project source/resources folder to find them

Returns:
the modules

readModule

public GwtModule readModule(String name)
                     throws GwtModuleReaderException
Specified by:
readModule in interface GwtModuleReader
Throws:
GwtModuleReaderException

addCompileSourceRoot

protected void addCompileSourceRoot(File path)
Overrides:
addCompileSourceRoot in class AbstractGwtMojo
Parameters:
path - file to add to the project compile directories


Copyright © 2007-2012 Codehaus. All Rights Reserved.