code: protected Collection<ResourceFile> getAllResourceFiles()
          throws MojoExecutionException
      {
          try
          {
              Set<ResourceFile> sourcesAndResources = new HashSet<ResourceFile>();
              Set<String> sourcesAndResourcesPath = new HashSet<String>();
              sourcesAndResourcesPath.addAll( getProject().getCompileSourceRoots() );
              for ( Resource resource : getProject().getResources() )
              {
                  sourcesAndResourcesPath.add( resource.getDirectory() );
              }
  
              for ( String name : getModules() )
              {
                  GwtModule module = readModule( name );
  
                  sourcesAndResources.add( getDescriptor( module, sourcesAndResourcesPath ) );
                  int count = 1;
  
                  for ( String source : module.getSources() )
                  {
                      getLog().debug( "GWT sources from " + name + '.' + source );
                      Collection<ResourceFile> files = getAsResources( module, source, sourcesAndResourcesPath,
                                                                       "**/*.java" );
                      sourcesAndResources.addAll( files );
                      count += files.size();
  
                      Collection<ResourceFile> uifiles = getAsResources( module, source, sourcesAndResourcesPath,
                              "**/*.ui.xml" );
                      sourcesAndResources.addAll( uifiles );
                      count += uifiles.size();
                  }
                  for ( String source : module.getSuperSources() )
                  {
                      getLog().debug( "GWT super-sources from " + name + '.' + source );
                      Collection<ResourceFile> files = getAsResources( module, source, sourcesAndResourcesPath,
                                                                       "**/*.java" );
                      sourcesAndResources.addAll( files );
                      count += files.size();
  
                      Collection<ResourceFile> uifiles = getAsResources( module, source, sourcesAndResourcesPath,
                              "**/*.ui.xml" );
                      sourcesAndResources.addAll( uifiles );
                      count += uifiles.size();
                  }
                  getLog().info( count + " source files from GWT module " + name );
              }
              return sourcesAndResources;
          }
          catch ( GwtModuleReaderException e )
          {
              throw new MojoExecutionException( e.getMessage(), e );
          }
      }
docs: Collect GWT java source code and module descriptor to be added as resources.