## 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

Since:
  Ant 1.5.2
Author:
  Antoine Levy-Lambert

Constructor Summary
`ResourceUtils()`

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

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ResourceUtils

    public ResourceUtils()

Method Detail

### 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

  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

Copyright © 2000-2003 Apache Software Foundation. All Rights Reserved.