Class AntFileScanner

    • Constructor Detail

      • AntFileScanner

        public AntFileScanner()
        Constructs a new instance.
        Since:
        1.2
      • AntFileScanner

        public AntFileScanner​(Log logger)
        Constructs a new instance.
        Parameters:
        logger - the logger used to log included/excluded files (only in debug mode).
        Since:
        1.2
    • Method Detail

      • getFiles

        public Collection<File> getFiles​(File directory,
                                         String[] includes,
                                         String[] excludes)
        Description copied from interface: FileScanner
        Returns files contained by a directory.
        Specified by:
        getFiles in interface FileScanner
        Parameters:
        directory - the directory to be scanned.
        includes - an array of include patterns.
        excludes - an array of exclude patterns
        Returns:
        files contained by a directory.
      • convertToFiles

        protected List<File> convertToFiles​(File directory,
                                            String[] paths)
        Converts paths found by scanner to files collection with absolute paths.
        Parameters:
        directory - the base directory.
        paths - the found paths.
        Returns:
        the collection with files.
        Since:
        1.2
        See Also:
        getFiles(File, String[], String[])