FileDocCategorySizeDatePackage
LocationResolver.javaAPI DocApache Ant 1.702213Wed Dec 13 06:16:22 GMT 2006org.apache.tools.ant.taskdefs.optional.extension.resolvers

LocationResolver

public class LocationResolver extends Object implements org.apache.tools.ant.taskdefs.optional.extension.ExtensionResolver
Resolver that just returns s specified location.

Fields Summary
private String
location
Constructors Summary
Methods Summary
public java.io.Fileresolve(org.apache.tools.ant.taskdefs.optional.extension.Extension extension, org.apache.tools.ant.Project project)
Returns the resolved file

param
extension the extension
param
project the project
return
the file resolved
throws
BuildException if no location is set

        if (null == location) {
            final String message = "No location specified for resolver";
            throw new BuildException(message);
        }

        return project.resolveFile(location);
    
public voidsetLocation(java.lang.String location)
Sets the location for this resolver

param
location the location

        this.location = location;
    
public java.lang.StringtoString()
Returns a string representation of the Location

return
the string representation

        return "Location[" + location + "]";