org.apache.tools.ant.taskdefs.optional.extension.resolvers

Class LocationResolver

public class LocationResolver extends Object implements ExtensionResolver

Resolver that just returns s specified location.
Method Summary
Fileresolve(Extension extension, Project project)
Returns the resolved file
voidsetLocation(String location)
Sets the location for this resolver
StringtoString()
Returns a string representation of the Location

Method Detail

resolve

public File resolve(Extension extension, Project project)
Returns the resolved file

Parameters: extension the extension project the project

Returns: the file resolved

Throws: BuildException if no location is set

setLocation

public void setLocation(String location)
Sets the location for this resolver

Parameters: location the location

toString

public String toString()
Returns a string representation of the Location

Returns: the string representation