Class PosixGroupSelector
- java.lang.Object
- 
- org.apache.tools.ant.types.selectors.PosixGroupSelector
 
- 
- All Implemented Interfaces:
- ResourceSelector,- FileSelector
 
 public class PosixGroupSelector extends java.lang.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 byPosixFileAttributes, this means the selector will accept any file that exists and has the given group attribute.- Since:
- Ant 1.10.4
 
- 
- 
Constructor SummaryConstructors Constructor Description PosixGroupSelector()
 - 
Method SummaryModifier and Type Method Description booleanisSelected(java.io.File basedir, java.lang.String filename, java.io.File file)Method that each selector will implement to create their selection behaviour.voidsetFollowSymlinks(boolean followSymlinks)Sets the "follow symbolic links" option.voidsetGroup(java.lang.String group)Sets the group name to look for.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.tools.ant.types.selectors.FileSelectorisSelected
 
- 
 
- 
- 
- 
Method Detail- 
setGrouppublic void setGroup(java.lang.String group) Sets the group name to look for.- Parameters:
- group- the group name
 
 - 
setFollowSymlinkspublic void setFollowSymlinks(boolean followSymlinks) Sets the "follow symbolic links" option.- Parameters:
- followSymlinks- whether or not symbolic links should be followed.
 
 - 
isSelectedpublic boolean isSelected(java.io.File basedir, java.lang.String filename, java.io.File file)Description copied from interface:FileSelectorMethod 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:
- isSelectedin interface- FileSelector
- 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
 
 
- 
 
-