org.apache.tools.ant.util
public class ResourceUtils extends Object
Since: Ant 1.5.2
Method Summary | |
---|---|
static Resource[] | selectOutOfDateSources(ProjectComponent logTo, Resource[] source, FileNameMapper mapper, ResourceFactory targets)
tells which source files should be reprocessed based on the
last modification date of target files |
static Resource[] | selectOutOfDateSources(ProjectComponent logTo, Resource[] source, FileNameMapper mapper, ResourceFactory targets, long granularity)
tells which source files should be reprocessed based on the
last modification date of target files |
Parameters: logTo where to send (more or less) interesting output source array of resources bearing relative path and last modification date mapper filename mapper indicating how to find the target files targets object able to map as a resource a relative path at destination
Returns: array containing the source files which need to be copied or processed, because the targets are out of date or do not exist
Parameters: logTo where to send (more or less) interesting output source array of resources bearing relative path and last modification date mapper filename mapper indicating how to find the target files targets object able to map as a resource a relative path at destination granularity The number of milliseconds leeway to give before deciding a target is out of date.
Returns: array containing the source files which need to be copied or processed, because the targets are out of date or do not exist
Since: Ant 1.6.2