code: private boolean handleResourceAsInclude(RebelResource rebelResource, Resource resource) {
      File dir = new File(resource.getDirectory());
      if (!dir.isAbsolute()) {
        dir = new File(getProject().getBasedir(), resource.getDirectory());
      }
      //if directory does not exist then exclude all
      if (!dir.exists() || !dir.isDirectory()) {
        return false;
      }
  
      resource.setDirectory(dir.getAbsolutePath());
  
      String[] files = getFilesToCopy(resource);
      if (files.length > 0) {
        //only include files that come from this directory
        List<String> includedFiles = new ArrayList<String>();
        for (String file : files) {
          includedFiles.add(StringUtils.replace(file, '\\', '/'));
        }
        rebelResource.setIncludes(includedFiles);
      }
      else {
        //there weren't any matching files
        return false;
      }
  
      return true;
    }
docs: Set includes & excludes for filtered resources.