Interface FileSelector

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isSelected(File basedir, String filename, File file)
    Method that each selector will implement to create their selection behaviour.
    default boolean
    Implement a basic Resource selection that delegates to this FileSelector.
  • Method Details

    • isSelected

      boolean isSelected(File basedir, String filename, File file) throws BuildException
      Method that each selector will implement to create their selection behaviour. If there is a problem with the setup of a selector, it can throw a BuildException to indicate the problem.
      Parameters:
      basedir - A java.io.File object for the base directory
      filename - The name of the file to check
      file - A File object for this filename
      Returns:
      whether the file should be selected or not
      Throws:
      BuildException - if the selector was not configured correctly
    • isSelected

      default boolean isSelected(Resource r)
      Implement a basic Resource selection that delegates to this FileSelector.
      Specified by:
      isSelected in interface ResourceSelector
      Parameters:
      r - resource
      Returns:
      whether the resource is selected