Class 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 ExtensionResolver Resolver that just returns s specified location.
- 
- 
Constructor SummaryConstructors Constructor Description LocationResolver()
 - 
Method SummaryModifier and Type Method Description java.io.Fileresolve(Extension extension, Project project)Returns the resolved filevoidsetLocation(java.lang.String location)Sets the location for this resolverjava.lang.StringtoString()Returns a string representation of the Location
 
- 
- 
- 
Method Detail- 
setLocationpublic void setLocation(java.lang.String location) Sets the location for this resolver- Parameters:
- location- the location
 
 - 
resolvepublic java.io.File resolve(Extension extension, Project project) throws BuildException Returns the resolved file- Specified by:
- resolvein interface- ExtensionResolver
- Parameters:
- extension- the extension
- project- the project
- Returns:
- the file resolved
- Throws:
- BuildException- if no location is set
 
 - 
toStringpublic java.lang.String toString() Returns a string representation of the Location- Overrides:
- toStringin class- java.lang.Object
- Returns:
- the string representation
 
 
- 
 
-