Class SingleFileScanner

  • All Implemented Interfaces:
    org.apache.tools.ant.FileScanner, org.apache.tools.ant.types.ResourceFactory, org.apache.tools.ant.types.selectors.SelectorScanner

    public class SingleFileScanner
    extends org.apache.tools.ant.DirectoryScanner
    A DirectoryScanner for a single file.
    Author:
    tom.shapira
    • Field Summary

      • Fields inherited from class org.apache.tools.ant.DirectoryScanner

        basedir, DEFAULTEXCLUDES, dirsDeselected, dirsExcluded, dirsIncluded, dirsNotIncluded, DOES_NOT_EXIST_POSTFIX, errorOnMissingDir, everythingIncluded, excludes, filesDeselected, filesExcluded, filesIncluded, filesNotIncluded, haveSlowResults, includes, isCaseSensitive, MAX_LEVELS_OF_SYMLINKS, selectors
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isIncluded​(java.io.File file)
      Exposes the DirectoryScanner.isIncluded(String) method to check if a single file should be included in the scan.
      • Methods inherited from class org.apache.tools.ant.DirectoryScanner

        addDefaultExclude, addDefaultExcludes, addExcludes, clearResults, couldHoldIncluded, getBasedir, getDefaultExcludes, getDeselectedDirectories, getDeselectedFiles, getExcludedDirectories, getExcludedFiles, getIncludedDirectories, getIncludedDirsCount, getIncludedFiles, getIncludedFilesCount, getNotFollowedSymlinks, getNotIncludedDirectories, getNotIncludedFiles, getResource, isCaseSensitive, isEverythingIncluded, isExcluded, isFollowSymlinks, isIncluded, isSelected, match, match, matchPath, matchPath, matchPatternStart, matchPatternStart, removeDefaultExclude, resetDefaultExcludes, scan, scandir, setBasedir, setBasedir, setCaseSensitive, setErrorOnMissingDir, setExcludes, setFollowSymlinks, setIncludes, setMaxLevelsOfSymlinks, setSelectors, slowScan
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SingleFileScanner

        public SingleFileScanner()
    • Method Detail

      • isIncluded

        public boolean isIncluded​(java.io.File file)
        Exposes the DirectoryScanner.isIncluded(String) method to check if a single file should be included in the scan.
        Parameters:
        file - for scanning
        Returns:
        weather the file should be included or not