Top Description Fields Constructors Methods
org.apache.tools.ant.taskdefs.optional.extension.resolvers

public Class LocationResolver

extends Object
implements ExtensionResolver
Class Inheritance
All Implemented Interfaces
org.apache.tools.ant.taskdefs.optional.extension.ExtensionResolver
Imports
java.io.File, org.apache.tools.ant.BuildException, .Project, org.apache.tools.ant.taskdefs.optional.extension.Extension, .ExtensionResolver

Resolver that just returns s specified location.

Field Summary

Modifier and TypeField and Description
private String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public File

Returns:

the file resolved
resolve
(final Extension
the extension
extension
,
final Project
the project
project
)

Implements org.apache.tools.ant.taskdefs.optional.extension.ExtensionResolver.resolve.

Returns the resolved file
public void
setLocation(final String
the location
location
)

Sets the location for this resolver

public String

Returns:

the string representation
toString
()

Overrides java.lang.Object.toString.

Returns a string representation of the Location
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

locationback to summary
private String location

Constructor Detail

LocationResolverback to summary
public LocationResolver()

Method Detail

resolveback to summary
public File resolve(final Extension extension, final Project project) throws BuildException

Implements org.apache.tools.ant.taskdefs.optional.extension.ExtensionResolver.resolve.

Returns the resolved file

Parameters
extension:Extension

the extension

project:Project

the project

Returns:File

the file resolved

Annotations
@Override
Exceptions
BuildException:
if no location is set
setLocationback to summary
public void setLocation(final String location)

Sets the location for this resolver

Parameters
location:String

the location

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns a string representation of the Location

Returns:String

the string representation

Annotations
@Override