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 Summary
Constructors Constructor Description LocationResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier 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
-
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 BuildException
Returns the resolved file- Specified by:
resolvein 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:
toStringin classjava.lang.Object- Returns:
- the string representation
-
-