Class PosixGroupSelector

All Implemented Interfaces:
ResourceSelector, FileSelector

public class PosixGroupSelector extends Object implements FileSelector
A selector that selects files based on their POSIX group.

Group is defined in terms of Files.readAttributes(java.nio.file.Path, java.lang.Class<A>, java.nio.file.LinkOption...) group attribute as provided by PosixFileAttributes, this means the selector will accept any file that exists and has the given group attribute.

Ant 1.10.4
  • Constructor Details

    • PosixGroupSelector

      public PosixGroupSelector()
  • Method Details

    • setGroup

      public void setGroup(String group)
      Sets the group name to look for.
      group - the group name
    • setFollowSymlinks

      public void setFollowSymlinks(boolean followSymlinks)
      Sets the "follow symbolic links" option.
      followSymlinks - whether or not symbolic links should be followed.
    • isSelected

      public boolean isSelected(File basedir, String filename, File file)
      Description copied from interface: FileSelector
      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.
      Specified by:
      isSelected in interface FileSelector
      basedir - A object for the base directory
      filename - The name of the file to check
      file - A File object for this filename
      whether the file should be selected or not