Top Description Methods
org.apache.tools.ant.types

public Interface ResourceFactory

Known Direct Implementers
org.apache.tools.ant.types.resources.FileResource, org.apache.tools.ant.util.SourceFileScanner, org.apache.tools.ant.DirectoryScanner, org.apache.tools.ant.Project

this interface should be implemented by classes (Scanners) needing to deliver information about resources.
Since
Ant 1.5.2

Method Summary

Modifier and TypeMethod and Description
public Resource

Returns:

instance of Resource; the exists attribute of Resource will tell whether the sought resource exists
getResource
(String
relative path of the resource about which information is sought. Expects "/" to be used as the directory separator.
name
)

Query a resource (file, zipentry, ...) by name

Method Detail

getResourceback to summary
public Resource getResource(String name)

Query a resource (file, zipentry, ...) by name

Parameters
name:String

relative path of the resource about which information is sought. Expects "/" to be used as the directory separator.

Returns:Resource

instance of Resource; the exists attribute of Resource will tell whether the sought resource exists