org.codehaus.mojo.gwt
Class GwtSourcesJarMojo

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.GwtSourcesJarMojo
All Implemented Interfaces:
ContextEnabled, Mojo, GwtModuleReader

public class GwtSourcesJarMojo
extends AbstractGwtModuleMojo

Add GWT java source code and module descriptor as resources to project jar. Alternative to gwt:resources for better Eclipse projects synchronization.

Author:
Vlad Skarzhevskyy
Is bound to the specified phase of the standard build lifecycle:
package
Is defined by the goal name:
source-jar

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
GwtSourcesJarMojo()
           
 
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

GwtSourcesJarMojo

public GwtSourcesJarMojo()
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.