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.
Modifier and Type | Field and Description |
---|---|
private File | |
private static final FileUtils | |
protected Task |
Access | Constructor and Description |
---|---|
public | SourceFileScanner(Task
The task we should log messages through. task)Construct a new SourceFileScanner. |
Modifier and Type | Method and Description |
---|---|
public Resource | Returns: data concerning a file whose relative path to destDir is name.relative path of file at destination. name)Implements org. |
public String[] | Returns: an array of filenames.the original set of files. files, File all files are relative to this directory. srcDir, File target files live here. if null file names
returned by the mapper are assumed to be absolute. destDir, FileNameMapper knows how to construct a target file names from
source file names. mapper)Restrict the given set of files to those that are newer than their corresponding target files. |
public String[] | Returns: an array of filenames.the original set of files. files, File all files are relative to this directory. srcDir, File target files live here. If null file names
returned by the mapper are assumed to be absolute. destDir, FileNameMapper knows how to construct a target file names from
source file names. mapper, long The number of milliseconds leeway to give
before deciding a target is out of date. granularity)Restrict the given set of files to those that are newer than their corresponding target files. |
public File[] | Returns: an array of files.the original set of files. files, File all files are relative to this directory. srcDir, File target files live here. If null file names
returned by the mapper are assumed to be absolute. destDir, FileNameMapper knows how to construct a target file names from
source file names. mapper)Convenience layer on top of restrict that returns the source files as File objects (containing absolute paths if srcDir is absolute). |
public File[] | Returns: an array of files.the original set of files. files, File all files are relative to this directory. srcDir, File target files live here. If null file names
returned by the mapper are assumed to be absolute. destDir, FileNameMapper knows how to construct a target file names from
source file names. mapper, long The number of milliseconds leeway to give
before deciding a target is out of date. granularity)Convenience layer on top of restrict that returns the source files as File objects (containing absolute paths if srcDir is absolute). |
destDir | back to summary |
---|---|
private File destDir |
FILE_UTILS | back to summary |
---|---|
private static final FileUtils FILE_UTILS |
task | back to summary |
---|---|
protected Task task |
SourceFileScanner | back to summary |
---|---|
public SourceFileScanner(Task task) Construct a new SourceFileScanner.
|
getResource | back to summary |
---|---|
public Resource getResource(String name) Implements org. Returns resource information for a file at destination. |
restrict | back to summary |
---|---|
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.
|
restrict | back to summary |
---|---|
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.
|
restrictAsFiles | back to summary |
---|---|
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).
|
restrictAsFiles | back to summary |
---|---|
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).
|