| java.lang.Object org.apache.tools.ant.util.SourceFileScanner
SourceFileScanner | public class SourceFileScanner implements ResourceFactory(Code) | | Utility class that collects the functionality of the various
scanDir methods that have been scattered in several tasks before.
The only method returns an array of source files. The array is a
subset of the files given as a parameter and holds only those that
are newer than their corresponding target files.
|
Method Summary | |
public Resource | getResource(String name) Returns resource information for a file at destination.
Parameters: name - relative path of file at destination. | public String[] | restrict(String[] files, File srcDir, File destDir, FileNameMapper mapper) Restrict the given set of files to those that are newer than
their corresponding target files.
Parameters: files - the original set of files. Parameters: srcDir - all files are relative to this directory. Parameters: destDir - target files live here. | public String[] | restrict(String[] files, File srcDir, File destDir, FileNameMapper mapper, long granularity) Restrict the given set of files to those that are newer than
their corresponding target files.
Parameters: files - the original set of files. Parameters: srcDir - all files are relative to this directory. Parameters: destDir - target files live here. | public File[] | restrictAsFiles(String[] files, File srcDir, File destDir, FileNameMapper mapper) Convenience layer on top of restrict that returns the source
files as File objects (containing absolute paths if srcDir is
absolute).
Parameters: files - the original set of files. Parameters: srcDir - all files are relative to this directory. Parameters: destDir - target files live here. | public File[] | restrictAsFiles(String[] files, File srcDir, File destDir, FileNameMapper mapper, long granularity) Convenience layer on top of restrict that returns the source
files as File objects (containing absolute paths if srcDir is
absolute).
Parameters: files - the original set of files. Parameters: srcDir - all files are relative to this directory. Parameters: destDir - target files live here. |
SourceFileScanner | public SourceFileScanner(Task task)(Code) | | Construct a new SourceFileScanner.
Parameters: task - The task we should log messages through. |
getResource | public Resource getResource(String name)(Code) | | Returns resource information for a file at destination.
Parameters: name - relative path of file at destination. data concerning a file whose relative path to destDir is name. since: Ant 1.5.2 |
restrict | public String[] restrict(String[] files, File srcDir, File destDir, FileNameMapper mapper)(Code) | | Restrict the given set of files to those that are newer than
their corresponding target files.
Parameters: files - the original set of files. Parameters: srcDir - all files are relative to this directory. Parameters: destDir - target files live here. if null file namesreturned by the mapper are assumed to be absolute. Parameters: mapper - knows how to construct a target file names fromsource file names. an array of filenames. |
restrict | public String[] restrict(String[] files, File srcDir, File destDir, FileNameMapper mapper, long granularity)(Code) | | Restrict the given set of files to those that are newer than
their corresponding target files.
Parameters: files - the original set of files. Parameters: srcDir - all files are relative to this directory. Parameters: destDir - target files live here. If null file namesreturned by the mapper are assumed to be absolute. Parameters: mapper - knows how to construct a target file names fromsource file names. Parameters: granularity - The number of milliseconds leeway to givebefore deciding a target is out of date. an array of filenames. since: Ant 1.6.2 |
restrictAsFiles | public File[] restrictAsFiles(String[] files, File srcDir, File destDir, FileNameMapper mapper)(Code) | | Convenience layer on top of restrict that returns the source
files as File objects (containing absolute paths if srcDir is
absolute).
Parameters: files - the original set of files. Parameters: srcDir - all files are relative to this directory. Parameters: destDir - target files live here. If null file namesreturned by the mapper are assumed to be absolute. Parameters: mapper - knows how to construct a target file names fromsource file names. an array of files. |
restrictAsFiles | public File[] restrictAsFiles(String[] files, File srcDir, File destDir, FileNameMapper mapper, long granularity)(Code) | | Convenience layer on top of restrict that returns the source
files as File objects (containing absolute paths if srcDir is
absolute).
Parameters: files - the original set of files. Parameters: srcDir - all files are relative to this directory. Parameters: destDir - target files live here. If null file namesreturned by the mapper are assumed to be absolute. Parameters: mapper - knows how to construct a target file names fromsource file names. Parameters: granularity - The number of milliseconds leeway to givebefore deciding a target is out of date. an array of files. since: Ant 1.6.2 |
|
|