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

public Class AntResolver

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

Resolver that just returns s specified location.

Field Summary

Modifier and TypeField and Description
private File
private File
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
setAntfile(final File
the ant file to set
antfile
)

Sets the ant file

public void
setDestfile(final File
the destination file
destfile
)

Sets the destination file

public void
setTarget(final String
the target
target
)

Sets the target

public String

Returns:

the string representation
toString
()

Overrides java.lang.Object.toString.

Returns a string representation
private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

antfileback to summary
private File antfile
destfileback to summary
private File destfile
targetback to summary
private String target

Constructor Detail

AntResolverback to summary
public AntResolver()

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 the file cannot be resolved
setAntfileback to summary
public void setAntfile(final File antfile)

Sets the ant file

Parameters
antfile:File

the ant file to set

setDestfileback to summary
public void setDestfile(final File destfile)

Sets the destination file

Parameters
destfile:File

the destination file

setTargetback to summary
public void setTarget(final String target)

Sets the target

Parameters
target:String

the target

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns a string representation

Returns:String

the string representation

Annotations
@Override
validateback to summary
private void validate()