org.apache.tools.ant.taskdefs.optional.extension.resolversClass LocationResolver
- java.lang.Object
- org.apache.tools.ant.taskdefs.optional.extension.resolvers.LocationResolver
- All Implemented Interfaces:
- ExtensionResolver
public class LocationResolver extends java.lang.Object implements ExtensionResolverResolver that just returns s specified location.
Constructor Summary
Constructors Constructor and Description LocationResolver()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.io.File
resolve(Extension extension, Project project)
Returns the resolved filevoid
setLocation(java.lang.String location)
Sets the location for this resolverjava.lang.String
toString()
Returns a string representation of the Location
Method Detail
setLocation
public void setLocation(java.lang.String location)Sets the location for this resolver
- Parameters:
location
- the location
resolve
public java.io.File resolve(Extension extension, Project project) throws BuildExceptionReturns the resolved file
- Specified by:
resolve
in interfaceExtensionResolver
- Parameters:
extension
- the extensionproject
- the project- Returns:
- the file resolved
- Throws:
BuildException
- if no location is set
toString
public java.lang.String toString()Returns a string representation of the Location
- Overrides:
toString
in classjava.lang.Object
- Returns:
- the string representation