org.codehaus.mojo.gwt
Class GwtResourcesMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.gwt.AbstractGwtMojo
          extended by org.codehaus.mojo.gwt.AbstractGwtModuleMojo
              extended by org.codehaus.mojo.gwt.GwtResourcesMojo
All Implemented Interfaces:
ContextEnabled, Mojo, GwtModuleReader

public class GwtResourcesMojo
extends AbstractGwtModuleMojo

Copy GWT java source code and module descriptor as resources in the build outputDirectory. Alternative to declaring a <resource> in the POM with finer filtering as the module descriptor is read to detect sources to be copied.

Author:
Nicolas De Loof
Is bound to the specified phase of the standard build lifecycle:
process-resources
Is defined by the goal name:
resources

Field Summary
 
Fields inherited from class org.codehaus.mojo.gwt.AbstractGwtModuleMojo
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
GwtResourcesMojo()
           
 
Method Summary
 void execute()
          
protected  Collection<org.codehaus.mojo.gwt.GwtResourcesBaseMojo.ResourceFile> getAllResourceFiles()
          Collect GWT java source code and module descriptor to be added as resources.
 
Methods inherited from class org.codehaus.mojo.gwt.AbstractGwtModuleMojo
addCompileSourceRoot, getGwtModules, getModules, readModule
 
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
 

Constructor Detail

GwtResourcesMojo

public GwtResourcesMojo()
Method Detail

execute

public void execute()
             throws MojoExecutionException,
                    MojoFailureException

Throws:
MojoExecutionException
MojoFailureException
See Also:
Mojo.execute()

getAllResourceFiles

protected Collection<org.codehaus.mojo.gwt.GwtResourcesBaseMojo.ResourceFile> getAllResourceFiles()
                                                                                           throws MojoExecutionException,
                                                                                                  MojoFailureException
Collect GWT java source code and module descriptor to be added as resources.

Throws:
MojoExecutionException
MojoFailureException


Copyright © 2007-2012 Codehaus. All Rights Reserved.