Class ExecutableSelector
java.lang.Object
org.apache.tools.ant.types.selectors.ExecutableSelector
- All Implemented Interfaces:
ResourceSelector,FileSelector
public class ExecutableSelector extends java.lang.Object implements FileSelector
A selector that selects executable files.
Executable is defined in terms of Files.isExecutable(java.nio.file.Path), this means the selector will
accept any file that exists and is executable by the
application.
- Since:
- Ant 1.10.0
-
Constructor Summary
Constructors Constructor Description ExecutableSelector() -
Method Summary
Modifier 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.
-
Constructor Details
-
ExecutableSelector
public ExecutableSelector()
-
-
Method Details
-
isSelected
public 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 interfaceFileSelector- Parameters:
basedir- A java.io.File object for the base directoryfilename- The name of the file to checkfile- A File object for this filename- Returns:
- whether the file should be selected or not
-