org.apache.tools.ant.taskdefs.optional.extension.resolvers

Class URLResolver

public class URLResolver extends Object implements ExtensionResolver

Resolver that just returns s specified location.
Method Summary
Fileresolve(Extension extension, Project project)
Returns the file resolved from URL and directory
voidsetDestdir(File destdir)
Sets the destination directory
voidsetDestfile(File destfile)
Sets the destination file
voidsetUrl(URL url)
Sets the URL
StringtoString()
Returns a string representation of the URL

Method Detail

resolve

public File resolve(Extension extension, Project project)
Returns the file resolved from URL and directory

Parameters: extension the extention project the project

Returns: file the file resolved

Throws: BuildException if the URL is invalid

setDestdir

public void setDestdir(File destdir)
Sets the destination directory

Parameters: destdir the destination directory

setDestfile

public void setDestfile(File destfile)
Sets the destination file

Parameters: destfile the destination file

setUrl

public void setUrl(URL url)
Sets the URL

Parameters: url the url

toString

public String toString()
Returns a string representation of the URL

Returns: the string representation