Class GwtResourcesMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, GwtModuleReader

    @Mojo(name="resources",
          defaultPhase=PROCESS_RESOURCES,
          threadSafe=true)
    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
    • Constructor Detail

      • GwtResourcesMojo

        public GwtResourcesMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException
        See Also:
        Mojo.execute()
      • getAllResourceFiles

        protected java.util.Collection<org.codehaus.mojo.gwt.GwtResourcesBaseMojo.ResourceFile> getAllResourceFiles()
                                                                                                             throws org.apache.maven.plugin.MojoExecutionException
        Collect GWT java source code and module descriptor to be added as resources.
        Throws:
        org.apache.maven.plugin.MojoExecutionException