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

public Class URLResolver

extends Object
implements ExtensionResolver
Class Inheritance
All Implemented Interfaces
org.apache.tools.ant.taskdefs.optional.extension.ExtensionResolver
Imports
java.io.File, java.net.URL, org.apache.tools.ant.BuildException, .Project, org.apache.tools.ant.taskdefs.Get, 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 URL

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private File
public File

Returns:

file 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 file resolved from URL and directory
public void
setDestdir(final File
the destination directory
destdir
)

Sets the destination directory

public void
setDestfile(final File
the destination file
destfile
)

Sets the destination file

public void
setUrl(final URL
the url
url
)

Sets the URL

public String

Returns:

the string representation
toString
()

Overrides java.lang.Object.toString.

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

Field Detail

destdirback to summary
private File destdir
destfileback to summary
private File destfile
urlback to summary
private URL url

Constructor Detail

URLResolverback to summary
public URLResolver()

Method Detail

getDestback to summary
private File getDest()
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 file resolved from URL and directory

Parameters
extension:Extension

the extension

project:Project

the project

Returns:File

file the file resolved

Annotations
@Override
Exceptions
BuildException:
if the URL is invalid
setDestdirback to summary
public void setDestdir(final File destdir)

Sets the destination directory

Parameters
destdir:File

the destination directory

setDestfileback to summary
public void setDestfile(final File destfile)

Sets the destination file

Parameters
destfile:File

the destination file

setUrlback to summary
public void setUrl(final URL url)

Sets the URL

Parameters
url:URL

the url

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns a string representation of the URL

Returns:String

the string representation

Annotations
@Override
validateback to summary
private void validate()