org.apache.tools.ant.util
Class ResourceUtils
java.lang.Object
org.apache.tools.ant.util.ResourceUtils
public class ResourceUtils
extends java.lang.Object
this class provides utility methods to process resources
selectOutOfDateSources
public 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
logTo
- where to send (more or less) interesting outputsource
- array of resources bearing relative path and last
modification datemapper
- filename mapper indicating how to find the target
filestargets
- object able to map as a resource a relative path
at destination
- array containing the source files which need to be
copied or processed, because the targets are out of date or do
not exist
selectOutOfDateSources
public 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
logTo
- where to send (more or less) interesting outputsource
- array of resources bearing relative path and last
modification datemapper
- filename mapper indicating how to find the target
filestargets
- object able to map as a resource a relative path
at destinationgranularity
- The number of milliseconds leeway to give
before deciding a target is out of date.
- array containing the source files which need to be
copied or processed, because the targets are out of date or do
not exist
Copyright B) 2000-2008 Apache Software Foundation. All Rights Reserved.