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
Modifier and Type Method 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
-
Constructor Details
-
LocationResolver
public LocationResolver()
-
-
Method Details
-
setLocation
public void setLocation(java.lang.String location)Sets the location for this resolver- Parameters:
location
- the location
-
resolve
Returns 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
-