public class ResourceUtils extends Object
| Constructor and Description |
|---|
ResourceUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Resource[] |
selectOutOfDateSources(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(Resource[] resources,
FileNameMapper mapper,
ResourceFactory targets,
long granularity)
tells which source files should be reprocessed based on the
last modification date of target files
|
public static Resource[] selectOutOfDateSources(Resource[] source, FileNameMapper mapper, ResourceFactory targets) throws Exception
source - 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 destinationExceptionpublic static Resource[] selectOutOfDateSources(Resource[] resources, FileNameMapper mapper, ResourceFactory targets, long granularity) throws Exception
resources - 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.ExceptionCopyright © 2001–2025. All rights reserved.